Don't force system library path

When building with non-root toolchains (gentoo-prefix for instance), it confuses the toolchain to use non-existing libraries.
pull/755/head
Amos Bird 4 years ago
parent a3264fb104
commit 73d41228a9
No known key found for this signature in database
GPG Key ID: 80D430DCBECFEDB4

@ -15,25 +15,27 @@ CC="$PTHREAD_CC"
AX_CXX_COMPILE_STDCXX_14([noext], [mandatory]) AX_CXX_COMPILE_STDCXX_14([noext], [mandatory])
for defdir in /opt/local /usr/local; do if test x"${without-system-paths}" != x"yes"; then
if test -d "$defdir/include"; then for defdir in /opt/local /usr/local; do
CPPFLAGS="$CPPFLAGS -I$defdir/include" if test -d "$defdir/include"; then
fi CPPFLAGS="$CPPFLAGS -I$defdir/include"
done fi
done
for defdir in /opt/local /usr/local /usr /; do
for defdir in /opt/local /usr/local /usr /; do
if test -d "$defdir/lib64"; then
LDFLAGS="$LDFLAGS -L$defdir/lib64" if test -d "$defdir/lib64"; then
fi LDFLAGS="$LDFLAGS -L$defdir/lib64"
if test -d "$defdir/lib"; then fi
LDFLAGS="$LDFLAGS -L$defdir/lib" if test -d "$defdir/lib"; then
fi LDFLAGS="$LDFLAGS -L$defdir/lib"
fi
if test -d "$defdir/lib/x86_64-linux-gnu"; then
LDFLAGS="$LDFLAGS -L$defdir/lib/x86_64-linux-gnu" if test -d "$defdir/lib/x86_64-linux-gnu"; then
fi LDFLAGS="$LDFLAGS -L$defdir/lib/x86_64-linux-gnu"
done fi
done
fi
dnl abssrcdir is the absolute path to the source base (regardless of where dnl abssrcdir is the absolute path to the source base (regardless of where
dnl you are building it) dnl you are building it)

Loading…
Cancel
Save