Skip to content
Snippets Groups Projects
Commit 9db7d565 authored by Claus-Justus Heine's avatar Claus-Justus Heine
Browse files

-LPATH should precede -lLIB.

parent 21b222ed
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,8 @@ m4_bpatsubst([$1],-,_)_INCLUDE_PATH=$DEFAULT_INCDIR)
dnl
dnl now check if the library and header files exist
dnl
[ac_]m4_bpatsubst([$1],-,_)_save_LDFLAGS="$LDFLAGS"
LDFLAGS="-L${m4_bpatsubst([$1],-,_)_LIB_PATH} ${LDFLAGS}"
if test "$7" = "optional" ; then
AC_CHECK_LIB($2, main,
[m4_bpatsubst([$1],-,_)_LIB="-L${m4_bpatsubst([$1],-,_)_LIB_PATH} -l$2"],
......@@ -93,6 +95,7 @@ else
[AC_MSG_ERROR([Library "lib$2" was not found])],
-L$m4_bpatsubst([$1],-,_)_LIB_PATH $4)
fi
LDFLAGS="${[ac_]m4_bpatsubst([$1],-,_)_save_LDFLAGS}"
if test "x${m4_bpatsubst([$1],-,_)_LIB}" = "x" ; then
:
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment