summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-12-10 20:47:51 +0100
committerHaru <haru@dotalux.com>2013-12-17 01:02:19 +0100
commitefe4174e59dc462130fde872365e891a7c73654a (patch)
tree2d706c263f57c92db3b8137c5fde6a0c78912263
parent4d13474b034f95f5be114aa5d3ef6ee59c8d8595 (diff)
downloadhercules-efe4174e59dc462130fde872365e891a7c73654a.tar.gz
hercules-efe4174e59dc462130fde872365e891a7c73654a.tar.bz2
hercules-efe4174e59dc462130fde872365e891a7c73654a.tar.xz
hercules-efe4174e59dc462130fde872365e891a7c73654a.zip
Changed plugin extension from .so to .dylib on OS X
- No functional changes. That's just the correct OS X file extension for dynamic libs. Signed-off-by: Haru <haru@dotalux.com>
-rwxr-xr-xconfigure5
-rw-r--r--configure.in3
-rw-r--r--src/common/HPM.h4
3 files changed, 10 insertions, 2 deletions
diff --git a/configure b/configure
index bf0a4d8ea..82466cad8 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in 0219c4d.
+# From configure.in 4d13474.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69.
#
@@ -6473,6 +6473,9 @@ CYGWIN*)
fd_setsize="done"
DLLEXT=".dll"
;;
+Darwin*)
+ DLLEXT=".dylib"
+ ;;
esac
diff --git a/configure.in b/configure.in
index 98c493a03..7db4ceda6 100644
--- a/configure.in
+++ b/configure.in
@@ -1123,6 +1123,9 @@ CYGWIN*)
fd_setsize="done"
DLLEXT=".dll"
;;
+Darwin*)
+ DLLEXT=".dylib"
+ ;;
esac
AC_SUBST([DLLEXT])
diff --git a/src/common/HPM.h b/src/common/HPM.h
index 5466693ab..d5a5cbb6a 100644
--- a/src/common/HPM.h
+++ b/src/common/HPM.h
@@ -28,8 +28,10 @@
#define plugin_import(x,y,z) (z)dlsym((x),(y))
#define plugin_close(x) dlclose(x)
- #ifdef CYGWIN
+ #if defined CYGWIN
#define DLL_EXT ".dll"
+ #elif defined __DARWIN__
+ #define DLL_EXT ".dylib"
#else
#define DLL_EXT ".so"
#endif