This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

AIX's cc doesn't like -W -Wall



While trying to build on AIX I get:

cc -c  -DIN_GCC     -W -Wall    -If -I./f -I. -I. -I./config f/bad.c -o f/bad.o
cc: 1501-208 command option W is missing a subargument
make[6]: *** [f/bad.o] Error 40
make[6]: Leaving directory `/tmp_mnt/home/seg/yotam/build/AIX/egcs/egcs-970917/gcc'

How about changing in   gcc/f/Makefile.in

ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) $(XCFLAGS) -W -Wall

into: 

ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) $(XCFLAGS)
ifneq ($(CC),$(OLDCC))
 ALL_CFLAGS += -W -Wall
endif

egcs-guys: have a nice weekend!
-- yotam


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]