Fix the static linking issue. fixes tstack/lnav#71.

This commit is contained in:
Suresh Sundriyal 2014-02-06 11:02:39 -08:00
parent 3251554cf9
commit e5471490cf
2 changed files with 10 additions and 2 deletions

6
configure vendored
View File

@ -3190,7 +3190,7 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
for defdir in /opt/local /usr/local /usr; do
for defdir in /opt/local /usr/local /usr /; do
if test -d "$defdir/include"; then
CPPFLAGS="$CPPFLAGS -I$defdir/include"
fi
@ -3201,6 +3201,10 @@ for defdir in /opt/local /usr/local /usr; do
if test -d "$defdir/lib64"; then
LDFLAGS="$LDFLAGS -L$defdir/lib64"
fi
if test -d "$defdir/lib/x86_64-linux-gnu"; then
LDFLAGS="$LDFLAGS -L$defdir/lib/x86_64-linux-gnu"
fi
done
case x$srcdir in

View File

@ -8,7 +8,7 @@ AC_PREFIX_DEFAULT(/usr/)
AC_CANONICAL_HOST
for defdir in /opt/local /usr/local /usr; do
for defdir in /opt/local /usr/local /usr /; do
if test -d "$defdir/include"; then
CPPFLAGS="$CPPFLAGS -I$defdir/include"
fi
@ -19,6 +19,10 @@ for defdir in /opt/local /usr/local /usr; do
if test -d "$defdir/lib64"; then
LDFLAGS="$LDFLAGS -L$defdir/lib64"
fi
if test -d "$defdir/lib/x86_64-linux-gnu"; then
LDFLAGS="$LDFLAGS -L$defdir/lib/x86_64-linux-gnu"
fi
done
dnl abssrcdir is the absolute path to the source base (regardless of where