gnu: miniupnpc: Allow executables to find libupnp.so.
authorLudovic Courtès <ludo@gnu.org>
Tue, 14 Apr 2015 08:00:40 +0000 (10:00 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 14 Apr 2015 08:03:24 +0000 (10:03 +0200)
* gnu/packages/upnp.scm (miniupnpc)[arguments]: Pass
  "LDFLAGS=-Wl,-rpath=...".

gnu/packages/upnp.scm

index a1a18d2..c46e905 100644 (file)
         (string-append
          "SH=" (assoc-ref %build-inputs "bash") "/bin/sh")
         (string-append "INSTALLPREFIX=" (assoc-ref %outputs "out"))
-        "CC=gcc")
+        "CC=gcc"
+
+        ;; Allow executables to find libminiupnpc.so.
+        (string-append "LDFLAGS=-Wl,-rpath="
+                       (assoc-ref %outputs "out") "/lib"))
        #:phases
        (alist-delete 'configure %standard-phases)))
     (home-page "http://miniupnp.free.fr/")