summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/upnp.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/upnp.scm b/gnu/packages/upnp.scm
index a1a18d272c..c46e905c42 100644
--- a/gnu/packages/upnp.scm
+++ b/gnu/packages/upnp.scm
@@ -48,7 +48,11 @@
         (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/")