From: Arran Cudbard-Bell Date: Fri, 1 Mar 2013 06:25:02 +0000 (-0500) Subject: The linker arguments still go through gcc... X-Git-Tag: release_3_0_0_beta1~893 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=335254c2ad673058ed04e877ec94930fe7511d88;p=thirdparty%2Ffreeradius-server.git The linker arguments still go through gcc... --- diff --git a/acinclude.m4 b/acinclude.m4 index f334c09119f..d0e9200e2be 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -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 ], diff --git a/src/modules/rlm_sql/drivers/rlm_sql_db2/configure b/src/modules/rlm_sql/drivers/rlm_sql_db2/configure index 401576f1887..b16533154b9 100755 --- a/src/modules/rlm_sql/drivers/rlm_sql_db2/configure +++ b/src/modules/rlm_sql/drivers/rlm_sql_db2/configure @@ -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