From: Guenter Knauf Date: Thu, 17 Feb 2011 10:46:41 +0000 (+0100) Subject: Set -fpcc-struct-return only for gcc compiler. X-Git-Tag: curl-7_21_4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=827f0a318cdbf73800c2366cf6a3132f2b2a7c49;p=thirdparty%2Fcurl.git Set -fpcc-struct-return only for gcc compiler. --- diff --git a/lib/Makefile.netware b/lib/Makefile.netware index 642f051d66..a4f6ebb657 100644 --- a/lib/Makefile.netware +++ b/lib/Makefile.netware @@ -146,7 +146,10 @@ ARFLAGS = -cq LIBEXT = a RANLIB = ranlib 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 ifeq ($(LIBARCH),LIBC) ifeq ($(POSIXFL),1) diff --git a/src/Makefile.netware b/src/Makefile.netware index ebfbcb5f03..b801f3be06 100644 --- a/src/Makefile.netware +++ b/src/Makefile.netware @@ -141,7 +141,10 @@ LD = nlmconv LDFLAGS = -T LIBEXT = a 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 ifeq ($(LIBARCH),LIBC) ifeq ($(POSIXFL),1)