From d52680eec04c83c9350ebedebea19f9aa67ac1e9 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Tue, 11 Dec 2018 23:27:09 +0100 Subject: gnu: libxml2: Don't reference libxml2.a in the default output. * gnu/packages/xml.scm (libxml2)[arguments]: Add substitution for libxml2.la. --- gnu/packages/xml.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index fd4c3fea2c..b85064ed7f 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -145,6 +145,12 @@ hierarchical form with variable field lengths.") (rename-file ar (string-append dst "/" (basename ar)))) (find-files src "\\.a$")) + + ;; Remove reference to the static library from the .la + ;; file such that Libtool does the right thing when both + ;; the shared and static variants are available. + (substitute* (string-append src "/libxml2.la") + (("^old_library='libxml2.a'") "old_library=''")) #t)))))) (home-page "http://www.xmlsoft.org/") (synopsis "C parser for XML") -- cgit v1.2.3