Changed compiler flags

This commit is contained in:
Michiel Broek 2003-12-21 14:58:25 +00:00
parent 63e3358b8f
commit 8453035be1
4 changed files with 6 additions and 5 deletions

View File

@ -11,6 +11,7 @@ v0.39.4 08-Dec-2003
Revised configure and all Makefiles for better support of
linking with threads libraries.
Changed endian tests using the configure script.
Changed compiler flags for threads.
upgrade:
If you didn't change anything of the language defaults then

4
configure vendored
View File

@ -2877,9 +2877,9 @@ else
debugging=no
fi;
if test "$debugging" = "yes"; then
CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes"
CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
else
CFLAGS="-O3 -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes"
CFLAGS="-O3 -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
fi

View File

@ -68,9 +68,9 @@ if test "$experiment" = "yes"; then
fi
AC_ARG_ENABLE(debugging, [ --enable-debugging Compile for debugging], [ debugging=$enableval ], [ debugging=no ])
if test "$debugging" = "yes"; then
CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes"
CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
else
CFLAGS="-O3 -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes"
CFLAGS="-O3 -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
fi

View File

@ -19,7 +19,7 @@ OTHER = Makefile issue issue.netbsd
#############################################################################
.c.o:
${CC} ${CFLAGS} -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS ${INCLUDES} ${DEFINES} -c $<
${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $<
all: mbtask