Use only the -L and -l parts of what pkg-config gives for *_LIBS so we don't pick up evil options like -Wl,--export-dynamic. b=261090 r=bryner sr=darin

This commit is contained in:
dbaron%dbaron.org 2004-09-30 05:19:29 +00:00
parent 3e283f239c
commit 88ea789602

View File

@ -28,7 +28,9 @@ AC_DEFUN(PKG_CHECK_MODULES, [
AC_MSG_RESULT($$1_CFLAGS)
AC_MSG_CHECKING($1_LIBS)
$1_LIBS=`$PKG_CONFIG --libs "$2"`
## don't use --libs since that can do evil things like add
## -Wl,--export-dynamic
$1_LIBS="`$PKG_CONFIG --libs-only-L \"$2\"` `$PKG_CONFIG --libs-only-l \"$2\"`"
AC_MSG_RESULT($$1_LIBS)
else
$1_CFLAGS=""