~ruther/guix-local

35fd588af0679d9d442e82ba29d610a16571b393 — Yelninei 7 months ago 7436628
gnu: hurd: Fix librump detection.

* gnu/packages/hurd.scm (hurd)[#:configure-flags]: Add -Wl,--as-needed to
LDFLAGS
[#:phases]: Remove 'fixup-cross-configure phase.

Change-Id: I698461ede24c26f6a0934106408ca802ed3fc455
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Fixes: guix/guix#1511
Merges: #1538
1 files changed, 3 insertions(+), 7 deletions(-)

M gnu/packages/hurd.scm
M gnu/packages/hurd.scm => gnu/packages/hurd.scm +3 -7
@@ 390,12 390,6 @@ Hurd-minimal package which are needed for both glibc and GCC.")
               (("#include <rpc/pmap_prot.h>" m)
                (string-append "#include <rpc/types.h>\n#include <rpc/xdr.h>\n" m)))
             #t))
         ,@(if (%current-target-system)
               '((add-after 'configure 'fixup-cross-configure
                   (lambda _
                     (substitute* "config.make"
                       (("HAVE_LIBRUMP = no") "HAVE_LIBRUMP = yes")))))
               '())
         (add-before 'build 'pre-build
           (lambda _
             ;; Don't change the ownership of any file at this time.


@@ 584,7 578,9 @@ exec ${system}/rc \"$@\"
                         (string-append datadir "/vga-system.bdf"))))))
       #:configure-flags
       ,#~(list (string-append "LDFLAGS=-Wl,-rpath="
                               #$output "/lib")
                               #$output "/lib"
                               ;; Linking with librump.so
                               " -Wl,--as-needed")
                "--enable-static-progs=ext2fs,iso9660fs,rumpdisk,pci-arbiter,acpi"
                "--disable-ncursesw"
                "--without-libbz2"