mirror of
https://github.com/tstack/lnav
synced 2024-11-17 15:29:40 +00:00
[build] some lib path ordering and a fix for older linuxes
This commit is contained in:
parent
561c881482
commit
22dbcf7796
7
configure
vendored
7
configure
vendored
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -131,3 +131,6 @@
|
||||
|
||||
/* Need pread */
|
||||
#undef _BSD_SOURCE
|
||||
|
||||
/* Needed for LLONG_MAX */
|
||||
#undef _ISOC99_SOURCE
|
||||
|
Loading…
Reference in New Issue
Block a user