Solve conflict between sys/types.h and gdefs.h (int8_t) on Solaris/x86. Warning: now char is treated signed instead unsigned (Sun only)

This commit is contained in:
Stas Degteff 2006-01-28 23:42:31 +00:00
parent 305261a040
commit b7062fe8c3

View File

@ -42,6 +42,7 @@ WINDRES=windres
EXEEXT=.exe EXEEXT=.exe
OBJEXT=.o OBJEXT=.o
LIBEXT=.a LIBEXT=.a
CFLAGS+=-funsigned-char
else else
ifeq ($(PLATFORM),emx) ifeq ($(PLATFORM),emx)
CAT=cat CAT=cat
@ -63,6 +64,7 @@ LIBEXT=.a
#OBJEXT=.obj #OBJEXT=.obj
#LIBEXT=.lib #LIBEXT=.lib
CXX=$(CC) CXX=$(CC)
CFLAGS+=-funsigned-char
else else
ifeq ($(PLATFORM),djg) ifeq ($(PLATFORM),djg)
CAT=command.com /c type CAT=command.com /c type
@ -76,6 +78,7 @@ SHELL=sh
EXEEXT=.exe EXEEXT=.exe
OBJEXT=.o OBJEXT=.o
LIBEXT=.a LIBEXT=.a
CFLAGS+=-funsigned-char
else else
ifeq ($(PLATFORM),be) ifeq ($(PLATFORM),be)
CAT=cat CAT=cat
@ -88,6 +91,7 @@ RANLIB=ranlib
EXEEXT= EXEEXT=
OBJEXT=.o OBJEXT=.o
LIBEXT=.a LIBEXT=.a
CFLAGS+=-funsigned-char
LNKFLAGS+=-lbe -ltextencoding LNKFLAGS+=-lbe -ltextencoding
else else
ifeq ($(PLATFORM),sun) # SUN Solaris ifeq ($(PLATFORM),sun) # SUN Solaris
@ -101,7 +105,7 @@ RANLIB=ranlib
EXEEXT= EXEEXT=
OBJEXT=.o OBJEXT=.o
LIBEXT=.a LIBEXT=.a
CFLAGS+=-D__SUNOS__ -D__UNIX__ -DUNIX CFLAGS+=-fsigned-char -D__SUNOS__ -D__UNIX__ -DUNIX
else # Linux, *BSD or another unix-like OS else # Linux, *BSD or another unix-like OS
CAT=cat CAT=cat
SED=sed SED=sed
@ -114,12 +118,13 @@ PLATFORM=lnx
EXEEXT= EXEEXT=
OBJEXT=.o OBJEXT=.o
LIBEXT=.a LIBEXT=.a
CFLAGS+=-funsigned-char
endif endif
endif endif
endif endif
endif endif
endif endif
CFLAGS+=-g -funsigned-char $(INCS) -Wall -Wno-sign-compare -pedantic -O2 -DPRAGMA_PACK # -fomit-frame-pointer CFLAGS+=-g $(INCS) -Wall -Wno-sign-compare -pedantic -O2 -DPRAGMA_PACK # -fomit-frame-pointer
LNKFLAGS+=-g LNKFLAGS+=-g
CPPFLAGS+=$(CFLAGS) -fno-rtti # -fno-exceptions CPPFLAGS+=$(CFLAGS) -fno-rtti # -fno-exceptions