Browse Source

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

Rich Megginson 18 years ago
parent
commit
496abe526e
1 changed files with 11 additions and 0 deletions
  1. 11 0
      ldap/admin/src/initconfig.in

+ 11 - 0
ldap/admin/src/initconfig.in

@@ -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