mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
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:
parent
3e283f239c
commit
88ea789602
@ -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=""
|
||||
|
Loading…
Reference in New Issue
Block a user