gnu: util-linux: Remove static library reference from '.la' files.

* gnu/packages/linux.scm (util-linux)[arguments]: Substitute all '.la' files.
This commit is contained in:
Marius Bakke 2018-09-09 11:58:45 +02:00
parent 334bd08c42
commit de781c05e7
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 8 additions and 1 deletions

View File

@ -645,7 +645,14 @@ providing the system administrator with some help in common tasks.")
(rename-file file (rename-file file
(string-append static "/" (string-append static "/"
file))) file)))
(find-files "lib" "\\.a$"))) (find-files "lib" "\\.a$"))
;; Remove references to the static library from the '.la'
;; files so that Libtool does the right thing when both
;; the shared and static library is available.
(substitute* (find-files "lib" "\\.la$")
(("old_library=.*") "old_library=''\n")))
#t)))))) #t))))))
(inputs `(("zlib" ,zlib) (inputs `(("zlib" ,zlib)
("ncurses" ,ncurses) ("ncurses" ,ncurses)