diff options
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile index f8390024..23d13436 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -48,10 +48,8 @@ endif ifeq ($(UNAME),) # for DJGPP, where uname doesn't exist CXXFLAGS += -mbnu210 else -ifneq ($(CXX),CC) # don't use -pipe with CC (Solaris native C++ compiler) CXXFLAGS += -pipe endif -endif ifeq ($(UNAME),Linux) LDFLAGS += -pthread @@ -72,6 +70,14 @@ endif ifeq ($(UNAME),SunOS) LDLIBS += -lnsl -lsocket +ifeq ($(CXX),CC) # override flags for CC (Solaris native C++ compiler) +CXXFLAGS = -DNDEBUG -O -g -native +LDFLAGS = +ifeq ($(ISX86),1) +# SSE2 intrinsics should work in Sun Studio 12 +# CXXFLAGS += -xarch=sse2 -D__SSE2__ +endif +endif endif SRCS = $(wildcard *.cpp) |