From: Andres Mejia Date: Sat, 23 Feb 2013 02:40:33 +0000 (-0500) Subject: Revert "Allow adding extra CFLAGS with a configure option." X-Git-Tag: v3.1.900a~360^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=014de9caa8326dadeb2b34c89de573af42d841a8;p=thirdparty%2Flibarchive.git Revert "Allow adding extra CFLAGS with a configure option." This reverts commit 64b3cefbdbc0d6deef1dd3bcde890e273c323168. Apparently, setting CFLAGS won't override the preset AM_CFLAGS afterall. Not sure why this was giving me a problem before. --- diff --git a/Makefile.am b/Makefile.am index 193739216..57efe7916 100644 --- a/Makefile.am +++ b/Makefile.am @@ -25,8 +25,7 @@ COMMON_CFLAGS=-Wall -Wformat -Wformat-security # The next line is commented out by default in shipping libarchive releases. # It is uncommented by default in trunk. DEV_CFLAGS=-Werror -Wextra -Wunused -Wshadow -Wmissing-prototypes -Wcast-qual -EXTRA_CFLAGS = @EXTRA_CFLAGS@ -AM_CFLAGS=$(COMMON_CFLAGS) $(DEV_CFLAGS) $(EXTRA_CFLAGS) +AM_CFLAGS=$(COMMON_CFLAGS) $(DEV_CFLAGS) PLATFORMCPPFLAGS = @PLATFORMCPPFLAGS@ AM_CPPFLAGS=$(PLATFORMCPPFLAGS) diff --git a/configure.ac b/configure.ac index 8a4afd756..73944d3e0 100644 --- a/configure.ac +++ b/configure.ac @@ -190,12 +190,6 @@ esac AM_CONDITIONAL([BUILD_BSDCPIO], [ test "$build_bsdcpio" = yes ]) AM_CONDITIONAL([STATIC_BSDCPIO], [ test "$static_bsdcpio" = yes ]) -AC_ARG_WITH([extra-cflags], - [AS_HELP_STRING([--with-extra-cflags=CFLAGS], [use extra CFLAGS])], - [], [enable_extra_cflags= ]) - -EXTRA_CFLAGS=$with_extra_cflags - # Set up defines needed before including any headers case $host in *mingw* | *cygwin* ) @@ -791,5 +785,4 @@ case "$host_os" in ;; esac -AC_SUBST(EXTRA_CFLAGS) AC_OUTPUT