summaryrefslogtreecommitdiff
path: root/ACE/include/makeinclude/platform_macosx_common.GNU
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2009-10-27 08:21:42 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2009-10-27 08:21:42 +0000
commitf26ad99b2e7b346349e9787717dacf08a2b54d2c (patch)
treef0cba0de21f4d6cf61ea003633ae800afbae22b7 /ACE/include/makeinclude/platform_macosx_common.GNU
parent3a912de9f58b12caf1104affef3fe12c7efe3aae (diff)
downloadATCD-f26ad99b2e7b346349e9787717dacf08a2b54d2c.tar.gz
Tue Oct 27 08:12:25 UTC 2009 William R. Otte <wotte@dre.vanderbilt.edu>
Diffstat (limited to 'ACE/include/makeinclude/platform_macosx_common.GNU')
-rw-r--r--ACE/include/makeinclude/platform_macosx_common.GNU56
1 files changed, 56 insertions, 0 deletions
diff --git a/ACE/include/makeinclude/platform_macosx_common.GNU b/ACE/include/makeinclude/platform_macosx_common.GNU
new file mode 100644
index 00000000000..7437a4ab1c5
--- /dev/null
+++ b/ACE/include/makeinclude/platform_macosx_common.GNU
@@ -0,0 +1,56 @@
+# $Id$
+# platform_macosx.GNU
+# support for Mac OS X 10.4 (Tiger)
+# By default, this uses the default compiler selected using gcc_select.
+
+cidl = 1
+boost = 1
+zzip = 1
+zlib = 1
+exceptions ?= 1
+threads ?= 1
+debug ?= 1
+optimize ?= 0
+ssl ?= 1
+versioned_so ?= 0
+universal ?= 0
+
+ifeq (,$(no_hidden_visibility))
+# Disable symbol visibility support by default.
+#
+# Apple's g++ 4 compiler doesn't appear to correctly support
+# visibility attributes, at least as well as the vanilla g++.
+ no_hidden_visibility = 1
+endif
+
+with_ld = macosx
+
+pipes ?= 1
+
+CC = gcc
+CXX = g++
+CFLAGS += -Wall -Wpointer-arith
+
+DCFLAGS += -g
+DLD = $(CXX)
+LD = $(CXX)
+#LIBS += -lstdc++.6 -lSystem -lSystemStubs
+
+OCFLAGS += -O2
+RANLIB = ranlib
+SOEXT = dylib
+SOFLAGS += -dynamiclib
+SOBUILD = -o $(VSHDIR)$*.dylib $<
+
+# 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
+
+LDFLAGS += -flat_namespace
+CCFLAGS += $(CFLAGS) $(TEMPLATES_FLAG)
+
+ifeq ($(universal),1)
+ CFLAGS += -arch i386 -arch ppc
+ LDFLAGS += -arch i386 -arch ppc
+endif