void-packages/srcpkgs/liba52/patches/cflags.patch

33 lines
1.0 KiB
Diff

diff --git a/configure.ac b/configure.ac
index 0ac7acd..a2b3bdc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,13 +29,6 @@ if test x"$GCC" = x"yes"; then
TRY_CFLAGS="$OPT_CFLAGS -Wall"
AC_TRY_CFLAGS([$TRY_CFLAGS $CFLAGS],[OPT_CFLAGS="$TRY_CFLAGS"])
- dnl -O3
- changequote(<<,>>)
- TRY_CFLAGS=`echo "$OPT_CFLAGS $CFLAGS"|sed "s/-O[0-9]*//g"`
- changequote([,])
- TRY_CFLAGS="$TRY_CFLAGS -O3"
- AC_TRY_CFLAGS([$TRY_CFLAGS],[OPT_CFLAGS="$TRY_CFLAGS"; CFLAGS=""])
-
AC_ARG_ENABLE([debug],
[ --enable-debug debug mode configuration])
if test x"$enable_debug" = x"yes"; then
diff --git a/liba52/configure.incl b/liba52/configure.incl
index 72f3f99..d62d4a3 100644
--- a/liba52/configure.incl
+++ b/liba52/configure.incl
@@ -1,9 +1,6 @@
AC_SUBST([LIBA52_CFLAGS])
AC_SUBST([LIBA52_LIBS])
-dnl avoid -fPIC when possible
-AC_LIBTOOL_NON_PIC([LIBA52_CFLAGS="$LIBA52_CFLAGS -prefer-non-pic"])
-
AC_ARG_ENABLE([fixed],
[ --enable-fixed use fixed-point (integer-based) arithmetic])
AC_ARG_ENABLE([double],