From 7e4f6f3bb11dba1bfa358d6083dd393e672836b6 Mon Sep 17 00:00:00 2001 From: jon_y Date: Sat, 11 Mar 2017 05:00:45 +0000 Subject: [PATCH] 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 --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configure.ac b/configure.ac index 03e9e84e..ee9bdbc5 100644 --- a/configure.ac +++ b/configure.ac @@ -64,6 +64,7 @@ LT_LDFLAGS=-export-dynamic EXEC_LT_LDFLAGS= be_static=no all_static=no +lib_static=no AC_MSG_CHECKING([if you are up to something totally static with LDFLAGS/CFLAGS]) for f in $LDFLAGS $CFLAGS do @@ -71,9 +72,14 @@ do -all-static) be_static=yes all_static=yes + lib_static=yes ;; -static) be_static=yes + lib_static=yes + ;; + -static-libgcc) + lib_static=yes ;; esac done @@ -101,6 +107,12 @@ AC_C_CONST AC_INLINE 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 modules=auto