The linker arguments still go through gcc...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 1 Mar 2013 06:25:02 +0000 (01:25 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 1 Mar 2013 06:25:02 +0000 (01:25 -0500)
acinclude.m4
src/modules/rlm_sql/drivers/rlm_sql_db2/configure

index f334c09..d0e9200 100644 (file)
@@ -204,7 +204,7 @@ if test "x$smart_try_dir" != "x"; then
     AC_TRY_LINK([extern char $2();],
                [$2()],
                [
-                smart_lib="-L$try -l$1 -rpath$try"
+                smart_lib="-L$try -l$1 -Wl,-rpath,$try"
                 AC_MSG_RESULT(yes)
                 break
                ],
@@ -242,7 +242,7 @@ if test "x$smart_lib" = "x"; then
     AC_TRY_LINK([extern char $2();],
                [$2()],
                [
-                 smart_lib="-L$try -l$1,-rpath$try"
+                 smart_lib="-L$try -l$1 -Wl,-rpath,$try"
                  AC_MSG_RESULT(yes)
                  break
                ],
index 401576f..b165331 100755 (executable)
@@ -2661,7 +2661,7 @@ SQLConnect()
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
 
-                smart_lib="-L$try -ldb2 -rpath$try"
+                smart_lib="-L$try -ldb2 -Wl,-rpath,$try"
                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
                 break
@@ -2779,7 +2779,7 @@ SQLConnect()
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
 
-                 smart_lib="-L$try -ldb2,-rpath$try"
+                 smart_lib="-L$try -ldb2 -Wl,-rpath,$try"
                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
                  break