From 827f0a318cdbf73800c2366cf6a3132f2b2a7c49 Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Thu, 17 Feb 2011 11:46:41 +0100 Subject: Set -fpcc-struct-return only for gcc compiler. --- src/Makefile.netware | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Makefile.netware') diff --git a/src/Makefile.netware b/src/Makefile.netware index ebfbcb5f0..b801f3be0 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) -- cgit v1.2.1