changeset 3540:2c036b972c14 trunk

Define SONAME on Solaris and POSIX layouts.
author William Pitcock <nenolod@atheme.org>
date Mon, 17 Sep 2007 17:26:45 -0500
parents 187908c7ec02
children 19cbbbf1b738
files m4/sharedlib.m4
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/m4/sharedlib.m4	Mon Sep 17 13:35:55 2007 -0500
+++ b/m4/sharedlib.m4	Mon Sep 17 17:26:45 2007 -0500
@@ -53,7 +53,7 @@
 			AC_MSG_RESULT(Solaris)
 			LIB_CPPFLAGS='-DPIC'
 			LIB_CFLAGS='-fPIC'
-			LIB_LDFLAGS='-shared -fPIC'
+			LIB_LDFLAGS='-shared -fPIC -Wl,-h=${LIB}'
 			LIB_PREFIX='lib'
 			LIB_SUFFIX='.so'
 			PLUGIN_CPPFLAGS='-DPIC'
@@ -81,7 +81,7 @@
 			AC_MSG_RESULT(POSIX)
 			LIB_CPPFLAGS='-DPIC'
 			LIB_CFLAGS='-fPIC'
-			LIB_LDFLAGS='-shared -fPIC'
+			LIB_LDFLAGS='-shared -fPIC -Wl,-h=${LIB}'
 			LIB_PREFIX='lib'
 			LIB_SUFFIX='.so'
 			PLUGIN_CPPFLAGS='-DPIC'