From be84118181c274b0dd39f0a1d78b3f721f3e5bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Sat, 11 Apr 2015 12:47:22 +0800 Subject: [PATCH] gnu: netpbm: Add $libdir to the RUNPATH of binaries. * gnu/packages/netpbm.scm (netpbm)[arguments]: Add 'LDFLAGS += -Wl,-rpath=...' to config.mk in the configure phase. --- gnu/packages/netpbm.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/netpbm.scm b/gnu/packages/netpbm.scm index e72cf32e3f..8e4c29cb16 100644 --- a/gnu/packages/netpbm.scm +++ b/gnu/packages/netpbm.scm @@ -75,6 +75,7 @@ (display "TIFFLIB = libtiff.so\n" f) (display "JPEGLIB = libjpeg.so\n" f) (display "ZLIB = libz.so\n" f) + (display (string-append "LDFLAGS += -Wl,-rpath=" %output "/lib") f) (close-port f) ;; drop advertisement for non-free program (substitute* "converter/ppm/Makefile" (("hpcdtoppm") ""))