summaryrefslogtreecommitdiff
path: root/ace/config-macosx.h
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2002-11-13 22:17:34 +0000
committerbala <balanatarajan@users.noreply.github.com>2002-11-13 22:17:34 +0000
commit09bdf3e362ca8010227cb7f461b1b2870c2db56f (patch)
treea8a49a48523f79ffae8694e9d7234b900055d794 /ace/config-macosx.h
parentecc84be415c0e521ed9c1f2b33252f8474ca5ab2 (diff)
downloadATCD-09bdf3e362ca8010227cb7f461b1b2870c2db56f.tar.gz
ChangeLogTag: Wed Nov 13 16:52:04 UTC 2002 Craig Rodrigues <crodrigu@bbn.com>
Diffstat (limited to 'ace/config-macosx.h')
-rw-r--r--ace/config-macosx.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/ace/config-macosx.h b/ace/config-macosx.h
index d47811133e9..48f21466797 100644
--- a/ace/config-macosx.h
+++ b/ace/config-macosx.h
@@ -167,13 +167,26 @@
#define ACE_LACKS_SIGINFO_H
#define ACE_HAS_UCONTEXT_T
#define ACE_HAS_GETIFADDRS
-#define ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES
+
+// dlcompat package (not part of base Darwin) is needed for dlopen().
+// Fink installer puts libraries in /sw/lib and headers in /sw/include
+// In order to install dlcompat do the following:
+// - download fink from http://fink.sf.net
+// - type:
+// fink install dlcompat
+#define ACE_HAS_SVR4_DYNAMIC_LINKING
+#define ACE_LD_SEARCH_PATH ACE_LIB_TEXT ("DYLD_LIBRARY_PATH")
+#define ACE_DLL_SUFFIX ACE_LIB_TEXT (".dylib")
// gperf seems to need this
#define ACE_HAS_NONSTATIC_OBJECT_MANAGER
-// Remove the following when Apple fixes static template member problem in their
-// compiler
+// gcc 3.1 is broken, gcc 3.3 is a bit better
+#if defined(__GNUC__) && (__GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 3))
+# define ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES
+ // Remove the following when Apple fixes static template member problem
+ // in their compiler
#define ACE_HAS_POSITION_INDEPENDENT_POINTERS 0
+#endif
#endif /* ACE_CONFIG_MACOSX_H */