* configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
of multiply defined symbols if the symbols is defined locally. E.G.: A local definition of malloc causes this problem. * configure: Regenerate. * profile/Makefile.in (W32API_INCLUDE): New variable. (ALL_CFLAGS): Use W32API_INCLUDE value. (ALL_CXXFLAGS): Ditto. (gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS. Thanks to Jeff Bonggren <jbon@users.sf.net>. * profile/configure.in (W32API_INCLUDE): Set default value. * profile/configure: Regenerate. * mingwex/Makefile.in (W32API_INCLUDE): New variable. (ALL_CFLAGS): Use W32API-INCLUDE value. (ALL_CXXFLAGS): Ditto. * mingwex/configure.in (W32API_INCLUDE): Set default value. * mingwex/configure: Regenerate.
This commit is contained in:
4
winsup/mingw/configure
vendored
4
winsup/mingw/configure
vendored
@@ -757,9 +757,9 @@ echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
||||
if test "$ac_test_CFLAGS" = set; then
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
elif test $ac_cv_prog_cc_g = yes; then
|
||||
CFLAGS="-g -O2 -D__USE_CRTIMP"
|
||||
CFLAGS="-g -O2
|
||||
else
|
||||
CFLAGS="-O2 -D__USE_CRTIMP"
|
||||
CFLAGS="-O2
|
||||
fi
|
||||
if test "$ac_test_CXXFLAGS" != set; then
|
||||
CXXFLAGS='$(CFLAGS)'
|
||||
|
Reference in New Issue
Block a user