summaryrefslogtreecommitdiff
path: root/ACE/include/makeinclude/platform_linux_pgi.GNU
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/include/makeinclude/platform_linux_pgi.GNU')
-rw-r--r--ACE/include/makeinclude/platform_linux_pgi.GNU45
1 files changed, 45 insertions, 0 deletions
diff --git a/ACE/include/makeinclude/platform_linux_pgi.GNU b/ACE/include/makeinclude/platform_linux_pgi.GNU
new file mode 100644
index 00000000000..3c0674d9866
--- /dev/null
+++ b/ACE/include/makeinclude/platform_linux_pgi.GNU
@@ -0,0 +1,45 @@
+# $Id$
+
+# This file should allow ACE to be built on Linux, using the
+# Portland Group PGI compilers
+#
+# This is just a copy of platform_linux.GNU, with a few things changed.
+
+include $(ACE_ROOT)/include/makeinclude/platform_linux_common.GNU
+
+CC = pgcc
+CXX = pgCC
+
+ifeq ($(threads),1)
+ CPPFLAGS += -D_REENTRANT $(PLATFORM_AIO_SUPPORT)
+endif # threads
+
+CCFLAGS += $(CFLAGS)
+DCFLAGS += -g
+DLD = $(CXX)
+LD = $(CXX)
+LIBS += -ldl
+
+ifeq ($(threads),1)
+ LIBS += -lpthread
+ ifeq (-DACE_HAS_AIO_CALLS,$(PLATFORM_AIO_SUPPORT))
+ LIBS += -lrt
+ endif
+endif
+
+OCFLAGS += -O3
+
+SOFLAGS += $(CPPFLAGS) -shared $(PIC) --prelink_objects
+SOBUILD = $(COMPILE.cc) $(PIC) --prelink_objects -o $(VSHDIR)$*.so $<; \
+ $(SOLINK.cc) -o $@ $(LDFLAGS) $(VSHDIR)$*.o
+PRELIB = @true
+
+# Added line below to support "Executable Shared Object" files (as
+# needed by the service configurator).
+# Marius Kjeldahl <mariusk@sn.no, marius@funcom.com>
+ifeq ($(threads),1)
+ ESOBUILD = $(COMPILEESO.cc) $(PIC) -shared -o $(VSHDIR)$*.so $<
+ ifndef PRELIB
+ PRELIB = @true
+ endif # ! PRELIB
+endif