aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author宋文武 <iyzsong@gmail.com>2015-04-11 12:47:22 +0800
committer宋文武 <iyzsong@gmail.com>2015-04-11 12:47:22 +0800
commitbe84118181c274b0dd39f0a1d78b3f721f3e5bca (patch)
treed2d8a1c91f0ba61272923b6f8f6ac64416e8f537
parent6b206853a067aae83165ddece7c562aa476abc33 (diff)
downloadpatches-be84118181c274b0dd39f0a1d78b3f721f3e5bca.tar
patches-be84118181c274b0dd39f0a1d78b3f721f3e5bca.tar.gz
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.
-rw-r--r--gnu/packages/netpbm.scm1
1 files changed, 1 insertions, 0 deletions
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") ""))