Skip to content

Commit

Permalink
Set -fpcc-struct-return only for gcc compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
gknauf committed Feb 17, 2011
1 parent b66eeb8 commit 827f0a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/Makefile.netware
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 4 additions & 1 deletion src/Makefile.netware
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 827f0a3

Please sign in to comment.