mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-07 11:29:59 +01:00
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.
This commit is contained in:
parent
99533da50d
commit
50b87bd54b
1 changed files with 2 additions and 1 deletions
|
@ -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))))
|
||||
|
|
Loading…
Add table
Reference in a new issue