summaryrefslogtreecommitdiff
path: root/ACE/include/makeinclude/platform_openbsd.GNU
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2008-03-04 14:51:23 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2008-03-04 14:51:23 +0000
commit99aa8c60282c7b8072eb35eb9ac815702f5bf586 (patch)
treebda96bf8c3a4c2875a083d7b16720533c8ffeaf4 /ACE/include/makeinclude/platform_openbsd.GNU
parentc4078c377d74290ebe4e66da0b4975da91732376 (diff)
downloadATCD-99aa8c60282c7b8072eb35eb9ac815702f5bf586.tar.gz
undoing accidental deletion
Diffstat (limited to 'ACE/include/makeinclude/platform_openbsd.GNU')
-rw-r--r--ACE/include/makeinclude/platform_openbsd.GNU50
1 files changed, 50 insertions, 0 deletions
diff --git a/ACE/include/makeinclude/platform_openbsd.GNU b/ACE/include/makeinclude/platform_openbsd.GNU
new file mode 100644
index 00000000000..af0e6dd7304
--- /dev/null
+++ b/ACE/include/makeinclude/platform_openbsd.GNU
@@ -0,0 +1,50 @@
+# $Id$
+
+# platform_openbsd.GNU
+
+versioned_so = 1
+
+exceptions ?= 1
+debug ?= 1
+optimize ?= 1
+threads ?= 1
+pipes ?= 1
+
+CC = gcc
+CXX = g++
+
+CFLAGS += -W -Wall -Wpointer-arith
+DCFLAGS += -g
+LDFLAGS += -Wl,-rpath $(ACE_ROOT)/lib
+DLD = $(CXX)
+LD = $(CXX)
+LIBS +=
+OCFLAGS += -O2
+PIC = -fpic
+AR = ar
+ARFLAGS = ruv
+RANLIB = ranlib
+
+#SOFLAGS += -Bshareable -x /usr/lib/c++rt0.o
+SOFLAGS += $(CPPFLAGS) -shared
+SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
+PRELIB = @echo
+
+ifeq ($(threads),1)
+LDFLAGS += -pthread
+CFLAGS += -D_THREAD_SAFE -DACE_HAS_THREADS
+endif # threads
+
+# Setting the internal name and version of shared libraries isn't supported
+# by OpenBSD. In fact, the -h option gives an error and interestingly
+# enough, the -soname option doesn't but just ignores its parameter.
+# This tells platform_g++_common.GNU not to add these link options.
+with_ld = openbsd
+
+# Test for template instantiation, add to SOFLAGS if versioned_so set,
+# add -E to LDFLAGS if using GNU ld
+#
+include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU
+
+CCFLAGS += $(CFLAGS) $(TEMPLATES_FLAG)
+