[build] some lib path ordering and a fix for older linuxes

This commit is contained in:
Timothy Stack 2013-08-28 18:20:11 -07:00
parent 561c881482
commit 22dbcf7796
3 changed files with 11 additions and 4 deletions

7
configure vendored
View File

@ -3087,7 +3087,7 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
for defdir in /usr /usr/local /opt/local; do
for defdir in /opt/local /usr/local /usr; do
if test -d "$defdir/include"; then
CPPFLAGS="$CPPFLAGS -I$defdir/include"
fi
@ -7000,6 +7000,9 @@ case "$host_os" in
$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
$as_echo "#define _ISOC99_SOURCE 1" >>confdefs.h
;;
esac
@ -7027,7 +7030,7 @@ if test x"${enable_static}" != x"no"; then
# will, hopefully, make a static binary that is compatible with
# many different versions of Linux.
mkdir -p src/static-libs
rm src/static-libs/*.a
rm -f src/static-libs/*.a
for libflag in $ALL_LDFLAGS; do
case $libflag in
-Lstatic-libs)

View File

@ -8,7 +8,7 @@ AC_PREFIX_DEFAULT(/usr/)
AC_CANONICAL_HOST
for defdir in /usr /usr/local /opt/local; do
for defdir in /opt/local /usr/local /usr; do
if test -d "$defdir/include"; then
CPPFLAGS="$CPPFLAGS -I$defdir/include"
fi
@ -95,6 +95,7 @@ case "$host_os" in
*)
# AC_DEFINE([_XOPEN_SOURCE], [500], [Need pread])
AC_DEFINE([_BSD_SOURCE], [1], [Need pread])
AC_DEFINE([_ISOC99_SOURCE], [1], [Needed for LLONG_MAX])
;;
esac
@ -120,7 +121,7 @@ if test x"${enable_static}" != x"no"; then
# will, hopefully, make a static binary that is compatible with
# many different versions of Linux.
mkdir -p src/static-libs
rm src/static-libs/*.a
rm -f src/static-libs/*.a
for libflag in $ALL_LDFLAGS; do
case $libflag in
-Lstatic-libs)

View File

@ -131,3 +131,6 @@
/* Need pread */
#undef _BSD_SOURCE
/* Needed for LLONG_MAX */
#undef _ISOC99_SOURCE