summaryrefslogtreecommitdiff
path: root/devel/libsigc++10/patches/patch-ab
blob: 8f7aa619cda15bc18d14ebe253d36beddd05d12e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ab,v 1.1.1.1 2003/03/01 11:47:22 jmmv Exp $

--- sigc-config.in.orig	Sat Oct 20 17:38:36 2001
+++ sigc-config.in	Tue May 28 14:33:11 2002
@@ -150,7 +150,7 @@
     case "$i" in
     # a library, save it for later, in reverse order
     -l*) af_rev_libs="$i $af_rev_libs" ;;
-    -L*|-R*)
+    -L*|-R*|-Wl,-R*)
         if test "X$af_echo_libs_L" = "Xyes"; then
             case " $af_lib_L_flags " in
             *\ $i\ *) ;;                              # already there
@@ -215,7 +215,7 @@
 
 
 if test "@libdir@" != /usr/lib ; then
-  libs="-L@libdir@"
+  libs="-Wl,-R@libdir@ -L@libdir@"
 fi
 af_cflags="$af_cflags -I@libdir@/sigc++-1.0/include -I@includedir@/sigc++-1.0"
 af_libs="$libs -lsigc @THREAD_LIB@ $af_libs"