diff options
-rw-r--r-- | acinclude.m4 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 0715502483..87e8b57d94 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -429,18 +429,19 @@ ifelse($3,,[ if test -n "$2"; then AC_ADD_LIBPATH($2) fi - AC_ADD_LIBRARY($1,1) + AC_ADD_LIBRARY($1) ],[ if test "$ext_shared" = "yes"; then if test -n "$2"; then - $3="[$]$3 -R$2 -L$2" + $3="-R$2 -L$2 -l$1 [$]$3" + else + $3="-l$1 [$]$3" fi - $3="[$]$3 -l$1" else if test -n "$2"; then AC_ADD_LIBPATH($2) fi - AC_ADD_LIBRARY($1,1) + AC_ADD_LIBRARY($1) fi ]) ]) |