summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_qnx_rtp_gcc.GNU
diff options
context:
space:
mode:
Diffstat (limited to 'include/makeinclude/platform_qnx_rtp_gcc.GNU')
-rw-r--r--include/makeinclude/platform_qnx_rtp_gcc.GNU34
1 files changed, 27 insertions, 7 deletions
diff --git a/include/makeinclude/platform_qnx_rtp_gcc.GNU b/include/makeinclude/platform_qnx_rtp_gcc.GNU
index 6b69a6a3749..213ec18739d 100644
--- a/include/makeinclude/platform_qnx_rtp_gcc.GNU
+++ b/include/makeinclude/platform_qnx_rtp_gcc.GNU
@@ -4,30 +4,50 @@
ACE_HAS_GNUG_PRE_2_8 := 0
+#new options as suggetsed by Andy Olson 3/10/01
+#---------------/*************/---------------------------------------------
inline = 1
debug = 1
-optimize = 1
+optimize = 0
exceptions = 1
+# note: I used CPPFLAGS instead of C or CC FLAGS, because the stupid QNX gcc
+# will link different start and end sections based on the setting of
+# -fexceptions, so it must be on both the compile AND link phase.
+#
ifeq ($(exceptions),1)
- CCFLAGS += -fexceptions
- LDFLAGS += -fexceptions
+ CPPFLAGS += -fexceptions
else
- CCLAGS += -fno-exceptions
- LDLAGS += -fno-exceptions
+ CPPFLAGS += -fno-exceptions
endif # ! exceptions
CC = gcc
CXX = g++
DCFLAGS += -gstabs
+#
+# This is a workaround needed only on QNX RTP.
+#
+TAO_DYNAMIC_LIBS=-lTAO_PortableServer
+TAO_COS_NAMING_LIBS=-lTAO_IORTable -lTAO_RTSched -lTAO_PortableServer -lTAO_Svc_Utils
+TAO_COS_NOTIFICATION_LIBS=-lTAO_Svc_Utils -lTAO_DynamicAny
+TAO_RT_SCHED_LIBS=-lTAO_PortableServer
+TAO_FAULT_TOLERANCE_LIBS=-lTAO_IORManip
+TAO_COS_TRADING_LIBS=-lTAO_Svc_Utils
+
CFLAGS += -pipe -W -Wall -Wpointer-arith
-CCFLAGS += $(CFLAGS) -fno-implicit-templates
+CCFLAGS += $(CFLAGS) -fno-implicit-templates -fexceptions
+#
+# Under the current version of QNX RTP ACE crashes
+# if compiled with debug option enabled. We leave the option here,
+# but disable debug by default.
+#
DLD = $(CXX)
LD = $(CXX)
+LDFLAGS +=
LIBS += -lsocket -lstdc++ -lm
-OCFLAGS += -O3
+OCFLAGS += -O2
PIC = -fPIC
AR = ar
ARFLAGS = ruv