build-system/gnu: Make libraries writable before stripping.

* guix/build/gnu-build-system.scm (strip)[strip-dir]: Change mode of
files before running strip-command.
This commit is contained in:
Marius Bakke 2016-11-24 09:11:39 +01:00
parent c8d1e7a130
commit c254ac3200
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 2 additions and 0 deletions

View File

@ -393,6 +393,8 @@ makefiles."
(or (elf-file? file) (ar-file? file)) (or (elf-file? file) (ar-file? file))
(or (not debug-output) (or (not debug-output)
(make-debug-file file)) (make-debug-file file))
;; Ensure libraries are writable.
(chmod file #o755)
(zero? (apply system* strip-command (zero? (apply system* strip-command
(append strip-flags (list file)))) (append strip-flags (list file))))
(or (not debug-output) (or (not debug-output)