]> granicus.if.org Git - curl/commitdiff
Set -fpcc-struct-return only for gcc compiler. curl-7_21_4
authorGuenter Knauf <lists@gknw.net>
Thu, 17 Feb 2011 10:46:41 +0000 (11:46 +0100)
committerGuenter Knauf <lists@gknw.net>
Thu, 17 Feb 2011 10:46:41 +0000 (11:46 +0100)
lib/Makefile.netware
src/Makefile.netware

index 642f051d665cab988fbc5fe1180b6322201cbd9a..a4f6ebb657955dfef499510079cd08b698908a22 100644 (file)
@@ -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)
index ebfbcb5f03dc031c4ad3c20fc6e67b53f0b9f73c..b801f3be063ee6ed84fc89cc4e13bce084737c17 100644 (file)
@@ -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)