FreeBSD: Add /usr/dt/lib to runtime linker
Create $LOCALBASE/libdata/ldconfig/cde which points the runtime linker to /usr/dt/lib There is no need to invoke ldconfig manually after this.
This commit is contained in:
committed by
Jon Trulson
parent
a8c2232e48
commit
91f228411e
@@ -78,6 +78,8 @@ FILESET=CDE-SHLIBS
|
|||||||
retval=0
|
retval=0
|
||||||
CDE_TOP=CDE_INSTALLATION_TOP
|
CDE_TOP=CDE_INSTALLATION_TOP
|
||||||
CDE_CONF_TOP=CDE_CONFIGURATION_TOP
|
CDE_CONF_TOP=CDE_CONFIGURATION_TOP
|
||||||
|
LOCALBASE=/usr/local
|
||||||
|
LDCONFIGFILE="${LOCALBASE}/libdata/ldconfig/cde"
|
||||||
|
|
||||||
HandleOption $*
|
HandleOption $*
|
||||||
|
|
||||||
@@ -88,6 +90,7 @@ CDE_CONF_TOP=CDE_CONFIGURATION_TOP
|
|||||||
|
|
||||||
RemoveShlibFiles
|
RemoveShlibFiles
|
||||||
|
|
||||||
|
rm -rf $LDCONFIGFILE
|
||||||
/sbin/ldconfig -R
|
/sbin/ldconfig -R
|
||||||
|
|
||||||
VerifyInstalledFiles
|
VerifyInstalledFiles
|
||||||
@@ -97,7 +100,8 @@ CDE_CONF_TOP=CDE_CONFIGURATION_TOP
|
|||||||
|
|
||||||
MakeTheLink
|
MakeTheLink
|
||||||
|
|
||||||
/sbin/ldconfig -m "${DT_TOP}/lib"
|
echo "${DT_OPT}/lib" > $LDCONFIGFILE
|
||||||
|
/sbin/ldconfig -R
|
||||||
|
|
||||||
elif [ "$OPERATION" = "verify" ]
|
elif [ "$OPERATION" = "verify" ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user