Move compiler flags to configure and add -O2 as a minimum default flag.

This commit is contained in:
Con Kolivas 2011-02-24 12:35:42 +11:00
parent dcf62d11a0
commit eae38b8645
4 changed files with 8 additions and 4 deletions

View file

@ -23,6 +23,8 @@ consistent with CFLAGS.
each rzip chunk and compressed block. each rzip chunk and compressed block.
* Modify purpose of -T threshold option to mean Disable LZO pre-compression * Modify purpose of -T threshold option to mean Disable LZO pre-compression
testing. Threshold level test deprecated. testing. Threshold level test deprecated.
* Make failure to allocate a buffer in the compress_ functions put out an
error message always rather than just in max_verbose mode.
FEBRUARY 2011, Peter Hyman FEBRUARY 2011, Peter Hyman
* Minor updates to man pages, lrzip.conf example file. * Minor updates to man pages, lrzip.conf example file.

View file

@ -18,8 +18,8 @@ LIBS=@LIBS@
LDFLAGS=@LDFLAGS@ LDFLAGS=@LDFLAGS@
CC=@CC@ CC=@CC@
CXX=@CXX@ CXX=@CXX@
CFLAGS=@CFLAGS@ -I. -I$(srcdir) -c -s CFLAGS=@CFLAGS@ -I. -I$(srcdir) -c
CXXFLAGS=@CXXFLAGS@ -I. -I$(srcdir) -c -s -Wall -W CXXFLAGS=@CXXFLAGS@ -I. -I$(srcdir) -c
LZMA_CFLAGS=-I@top_srcdir@/lzma/C -DCOMPRESS_MF_MT -D_REENTRANT LZMA_CFLAGS=-I@top_srcdir@/lzma/C -DCOMPRESS_MF_MT -D_REENTRANT
INSTALLCMD=@INSTALL@ INSTALLCMD=@INSTALL@

3
configure vendored
View file

@ -3871,7 +3871,8 @@ fi
if test x"$GCC" = xyes; then if test x"$GCC" = xyes; then
CFLAGS="$CFLAGS -Wall -W" CFLAGS="-Wall -W -s -O2 $CFLAGS"
CXXFLAGS="-Wall -W -s -O2 $CXXFLAGS"
fi fi
ac_ext=c ac_ext=c

View file

@ -26,7 +26,8 @@ AC_SUBST(SHELL)
AC_SYS_LARGEFILE AC_SYS_LARGEFILE
if test x"$GCC" = xyes; then if test x"$GCC" = xyes; then
CFLAGS="$CFLAGS -Wall -W" CFLAGS="-Wall -W -s -O2 $CFLAGS"
CXXFLAGS="-Wall -W -s -O2 $CXXFLAGS"
fi fi
AC_CHECK_HEADERS(fcntl.h sys/time.h sys/unistd.h unistd.h) AC_CHECK_HEADERS(fcntl.h sys/time.h sys/unistd.h unistd.h)