Set -fpcc-struct-return only for gcc compiler.
This commit is contained in:
Родитель
b66eeb8bf8
Коммит
827f0a318c
|
@ -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)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче