FreeBSD: Add /usr/dt/lib to runtime linker
authorMarcin Cieslak <saper@saper.info>
Mon, 24 Sep 2012 23:48:27 +0000 (01:48 +0200)
committerJon Trulson <jon@radscan.com>
Tue, 25 Sep 2012 00:34:30 +0000 (18:34 -0600)
Create $LOCALBASE/libdata/ldconfig/cde
which points the runtime linker to /usr/dt/lib

There is no need to invoke ldconfig manually
after this.

cde/admin/IntegTools/post_install/freebsd/configShlibs.src

index 3807af30cdfaa76e4760b99b6870dbd92913c7a1..101ca50d2bdb6f5c8e93eaf494214c599eb76694 100755 (executable)
@@ -78,6 +78,8 @@ FILESET=CDE-SHLIBS
 retval=0
 CDE_TOP=CDE_INSTALLATION_TOP
 CDE_CONF_TOP=CDE_CONFIGURATION_TOP
+LOCALBASE=/usr/local
+LDCONFIGFILE="${LOCALBASE}/libdata/ldconfig/cde"
 
   HandleOption $*
 
@@ -88,6 +90,7 @@ CDE_CONF_TOP=CDE_CONFIGURATION_TOP
 
     RemoveShlibFiles
 
+    rm -rf $LDCONFIGFILE
     /sbin/ldconfig -R
 
     VerifyInstalledFiles
@@ -97,7 +100,8 @@ CDE_CONF_TOP=CDE_CONFIGURATION_TOP
 
     MakeTheLink
 
-    /sbin/ldconfig -m "${DT_TOP}/lib"
+    echo "${DT_OPT}/lib" > $LDCONFIGFILE
+    /sbin/ldconfig -R
 
   elif [ "$OPERATION" = "verify" ]
   then