diff options
Diffstat (limited to 'ACE/include/makeinclude/platform_qnx_rtp_gcc.GNU')
-rw-r--r-- | ACE/include/makeinclude/platform_qnx_rtp_gcc.GNU | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/ACE/include/makeinclude/platform_qnx_rtp_gcc.GNU b/ACE/include/makeinclude/platform_qnx_rtp_gcc.GNU new file mode 100644 index 00000000000..7c13b512c11 --- /dev/null +++ b/ACE/include/makeinclude/platform_qnx_rtp_gcc.GNU @@ -0,0 +1,55 @@ +# $Id$ +# +# QNX/RTP hosted, using gcc-2.95.2 + +nto_version := $(shell uname -a | awk '{ gsub("\\.","", $$3 ); print $$3;}') + +inline = 1 +debug ?= 1 +optimize ?= 0 +exceptions ?= 1 +threads ?= 1 +ifeq ($(exceptions),1) + CCFLAGS += -fexceptions + LDFLAGS += -fexceptions +else + CCFLAGS += -fno-exceptions + LDFLAGS += -fno-exceptions +endif # ! exceptions + +ifeq ($(inline),1) + CCFLAGS += -finline-functions +else + CCFLAGS += -fno-inline +endif # inline + +ifeq ($(debug),1) + DCFLAGS += -gdwarf-2 +else # debug excludes optimize due to g++ internal compiler error + ifeq ($(optimize),1) + OCFLAGS += -O3 + endif #optimize +endif #debug +CC = gcc +CXX = g++ + +CFLAGS += -pipe -W -Wall -Wpointer-arith -DACE_NTO_VERS=$(nto_version) +CPPFLAGS += -DACE_NTO_VERS=$(nto_version) + +DLD = $(CXX) +LD = $(CXX) +LIBS += -lsocket -lstdc++ -lm + +PIC = -fPIC +AR = ar +ARFLAGS = ruv +#RANLIB = ranlib +SOFLAGS += $(CPPFLAGS) -shared +SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $< +PRELIB = @true + +# Test for template instantiation, add to SOFLAGS if SONAME set, +# add -E to LDFLAGS if using GNU ld +# +include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU +CCFLAGS += $(CFLAGS) $(TEMPLATES_FLAG) |