me
/
guix
Archived
1
0
Fork 0

build-system/gnu: Strip only ELF files.

Suggested by Mark H Weaver <mhw@netris.org>
at <http://lists.gnu.org/archive/html/guix-devel/2014-10/msg00395.html>.

* guix/build/gnu-build-system.scm (strip)[strip-dir]: Strip only
  when (elf-file? PATH) is true.
master
Ludovic Courtès 2014-11-22 12:49:14 +01:00
parent 99533da50d
commit 50b87bd54b
1 changed files with 2 additions and 1 deletions

View File

@ -343,7 +343,8 @@ makefiles."
debug-output objcopy-command))
(file-system-fold (const #t)
(lambda (path stat result) ; leaf
(and (or (not debug-output)
(and (elf-file? path)
(or (not debug-output)
(make-debug-file path))
(zero? (apply system* strip-command
(append strip-flags (list path))))