[Fedora-directory-commits] ldapserver/ldap/admin/src initconfig.in, 1.1, 1.2

Richard Allen Megginson (rmeggins) fedora-directory-commits at redhat.com
Tue Oct 9 17:49:11 UTC 2007


Author: rmeggins

Update of /cvs/dirsec/ldapserver/ldap/admin/src
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18806

Modified Files:
	initconfig.in 
Log Message:
Resolves: bug 190220
Bug Description: Link DS with libumem on Solaris 9 and later
Reviewed by: nkinder (Thanks!)
Fix Description: See if libumem.so exists, and set the appropriate LD_PRELOAD env. var. if so.
Platforms tested: Solaris 9 64-bit
Flag Day: no
Doc impact: no



Index: initconfig.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/initconfig.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- initconfig.in	5 Oct 2007 23:45:50 -0000	1.1
+++ initconfig.in	9 Oct 2007 17:49:09 -0000	1.2
@@ -20,3 +20,14 @@
 # KRB5_KTNAME=@instconfigdir@/slapd-instance/keytab ; export KRB5_KTNAME
 
 # other environment settings can be added here too
+OS=`uname -s`
+# use the new mt slab memory allocator on Solaris
+# this requires Solaris 9 update 3 or later
+if [ "$OS" = "SunOS" -a -f /usr/lib/libumem.so ] ; then
+    LD_PRELOAD=/usr/lib/libumem.so
+    export LD_PRELOAD
+fi
+if [ "$OS" = "SunOS" -a -f /usr/lib/64/libumem.so ] ; then
+    LD_PRELOAD_64=/usr/lib/64/libumem.so
+    export LD_PRELOAD_64
+fi




More information about the Fedora-directory-commits mailing list