Set -fpcc-struct-return only for gcc compiler.

This commit is contained in:
Guenter Knauf 2011-02-17 11:46:41 +01:00
Родитель b66eeb8bf8
Коммит 827f0a318c
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -146,7 +146,10 @@ ARFLAGS = -cq
LIBEXT = a LIBEXT = a
RANLIB = ranlib RANLIB = ranlib
CFLAGS += -m32 CFLAGS += -m32
CFLAGS += -fno-builtin -fpcc-struct-return -fno-strict-aliasing CFLAGS += -fno-builtin -fno-strict-aliasing
ifeq ($(findstring gcc,$(CC)),gcc)
CFLAGS += -fpcc-struct-return
endif
CFLAGS += -Wall # -pedantic CFLAGS += -Wall # -pedantic
ifeq ($(LIBARCH),LIBC) ifeq ($(LIBARCH),LIBC)
ifeq ($(POSIXFL),1) ifeq ($(POSIXFL),1)

Просмотреть файл

@ -141,7 +141,10 @@ LD = nlmconv
LDFLAGS = -T LDFLAGS = -T
LIBEXT = a LIBEXT = a
CFLAGS += -m32 CFLAGS += -m32
CFLAGS += -fno-builtin -fpcc-struct-return -fno-strict-aliasing CFLAGS += -fno-builtin -fno-strict-aliasing
ifeq ($(findstring gcc,$(CC)),gcc)
CFLAGS += -fpcc-struct-return
endif
CFLAGS += -Wall # -pedantic CFLAGS += -Wall # -pedantic
ifeq ($(LIBARCH),LIBC) ifeq ($(LIBARCH),LIBC)
ifeq ($(POSIXFL),1) ifeq ($(POSIXFL),1)