mirror of
http://mpg123.de/trunk/.git
synced 2025-10-25 04:37:34 +03:00
Attempt a horrible hack to get around static-libgcc and libtool
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4199 35dc7657-300d-0410-a2e5-dc2837fedb53
This commit is contained in:
12
configure.ac
12
configure.ac
@@ -64,6 +64,7 @@ LT_LDFLAGS=-export-dynamic
|
|||||||
EXEC_LT_LDFLAGS=
|
EXEC_LT_LDFLAGS=
|
||||||
be_static=no
|
be_static=no
|
||||||
all_static=no
|
all_static=no
|
||||||
|
lib_static=no
|
||||||
AC_MSG_CHECKING([if you are up to something totally static with LDFLAGS/CFLAGS])
|
AC_MSG_CHECKING([if you are up to something totally static with LDFLAGS/CFLAGS])
|
||||||
for f in $LDFLAGS $CFLAGS
|
for f in $LDFLAGS $CFLAGS
|
||||||
do
|
do
|
||||||
@@ -71,9 +72,14 @@ do
|
|||||||
-all-static)
|
-all-static)
|
||||||
be_static=yes
|
be_static=yes
|
||||||
all_static=yes
|
all_static=yes
|
||||||
|
lib_static=yes
|
||||||
;;
|
;;
|
||||||
-static)
|
-static)
|
||||||
be_static=yes
|
be_static=yes
|
||||||
|
lib_static=yes
|
||||||
|
;;
|
||||||
|
-static-libgcc)
|
||||||
|
lib_static=yes
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@@ -101,6 +107,12 @@ AC_C_CONST
|
|||||||
AC_INLINE
|
AC_INLINE
|
||||||
AC_C_BIGENDIAN
|
AC_C_BIGENDIAN
|
||||||
|
|
||||||
|
if test "x$lib_static" = xyes; then
|
||||||
|
CC="$CC -static-libgcc"
|
||||||
|
CCLD="$CC"
|
||||||
|
echo "Adding -static-libgcc"
|
||||||
|
fi
|
||||||
|
|
||||||
dnl ############# Use Libtool for dynamic module loading
|
dnl ############# Use Libtool for dynamic module loading
|
||||||
|
|
||||||
modules=auto
|
modules=auto
|
||||||
|
|||||||
Reference in New Issue
Block a user