Default to create progs with symbols (incl. debug)
* Set CFLAGS entirely in configure if not already set. * Compile bcheck.c with the same flags as the other source files * Don't strip binaries by default (GB are cheap now) but provide a --strip-binaries option in configure script.
This commit is contained in:
8
configure
vendored
8
configure
vendored
@ -146,6 +146,8 @@ for opt do
|
||||
;;
|
||||
--disable-rpath) disable_rpath="yes"
|
||||
;;
|
||||
--strip-binaries) strip_binaries="yes"
|
||||
;;
|
||||
--with-libgcc) use_libgcc="yes"
|
||||
;;
|
||||
--with-selinux) have_selinux="yes"
|
||||
@ -157,7 +159,7 @@ done
|
||||
|
||||
# Checking for CFLAGS
|
||||
if test -z "$CFLAGS"; then
|
||||
CFLAGS="-O2"
|
||||
CFLAGS="-Wall -g -O2"
|
||||
fi
|
||||
|
||||
cc="${cross_prefix}${cc}"
|
||||
@ -253,6 +255,7 @@ echo " --sysroot=PREFIX prepend PREFIX to library/include paths []"
|
||||
echo " --cc=CC use C compiler CC [$cc]"
|
||||
echo " --disable-static make libtcc.so instead of libtcc.a"
|
||||
echo " --disable-rpath disable use of -rpath with the above"
|
||||
echo " --strip-binaries strip symbol tables from resulting binaries"
|
||||
echo " --with-libgcc use /lib/libgcc_s.so.1 instead of libtcc.a"
|
||||
echo " --enable-mingw32 build windows version on linux with mingw32"
|
||||
echo " --enable-cygwin build windows version on windows with cygwin"
|
||||
@ -419,6 +422,9 @@ fi
|
||||
if test "$disable_rpath" = "yes" ; then
|
||||
echo "DISABLE_RPATH=yes" >> config.mak
|
||||
fi
|
||||
if test "$strip_binaries" = "yes" ; then
|
||||
echo "STRIP_BINARIES=yes" >> config.mak
|
||||
fi
|
||||
if test "$use_libgcc" = "yes" ; then
|
||||
echo "#define CONFIG_USE_LIBGCC" >> $TMPH
|
||||
echo "CONFIG_USE_LIBGCC=yes" >> config.mak
|
||||
|
||||
Reference in New Issue
Block a user