ldconfig (140342) | ldconfig (154114) |
---|---|
1#!/bin/sh 2# 3# $NetBSD: ldconfig,v 1.5 2002/03/22 04:33:58 thorpej Exp $ | 1#!/bin/sh 2# 3# $NetBSD: ldconfig,v 1.5 2002/03/22 04:33:58 thorpej Exp $ |
4# $FreeBSD: head/etc/rc.d/ldconfig 140342 2005-01-16 08:34:30Z obrien $ | 4# $FreeBSD: head/etc/rc.d/ldconfig 154114 2006-01-08 10:15:31Z dougb $ |
5# 6 7# PROVIDE: ldconfig 8# REQUIRE: mountcritremote cleanvar 9# BEFORE: DAEMON 10 11. /etc/rc.subr 12 --- 4 unchanged lines hidden (view full) --- 17 18ldconfig_start() 19{ 20 _ins= 21 ldconfig=${ldconfig_command} 22 checkyesno ldconfig_insecure && _ins="-i" 23 if [ -x "${ldconfig_command}" ]; then 24 _LDC="/lib /usr/lib" | 5# 6 7# PROVIDE: ldconfig 8# REQUIRE: mountcritremote cleanvar 9# BEFORE: DAEMON 10 11. /etc/rc.subr 12 --- 4 unchanged lines hidden (view full) --- 17 18ldconfig_start() 19{ 20 _ins= 21 ldconfig=${ldconfig_command} 22 checkyesno ldconfig_insecure && _ins="-i" 23 if [ -x "${ldconfig_command}" ]; then 24 _LDC="/lib /usr/lib" |
25 for i in ${ldconfig_local_dirs}; do 26 if [ -d "${i}" ]; then 27 ldconfig_paths="${ldconfig_paths} `find ${i} -type f`" 28 fi 29 done |
|
25 for i in ${ldconfig_paths} /etc/ld-elf.so.conf; do 26 if [ -r "${i}" ]; then 27 _LDC="${_LDC} ${i}" 28 fi 29 done 30 echo 'ELF ldconfig path:' ${_LDC} 31 ${ldconfig} -elf ${_ins} ${_LDC} 32 | 30 for i in ${ldconfig_paths} /etc/ld-elf.so.conf; do 31 if [ -r "${i}" ]; then 32 _LDC="${_LDC} ${i}" 33 fi 34 done 35 echo 'ELF ldconfig path:' ${_LDC} 36 ${ldconfig} -elf ${_ins} ${_LDC} 37 |
38 case `sysctl -n hw.machine_arch` in 39 amd64) 40 for i in ${ldconfig_local32_dirs}; do 41 if [ -d "${i}" ]; then 42 ldconfig32_paths="${ldconfig32_paths} `find ${i} -type f`" 43 fi 44 done 45 echo '32-bit compatibility ldconfig path:' ${ldconfig32_paths} 46 ${ldconfig} -32 -m ${_ins} ${ldconfig32_paths} 47 ;; 48 esac 49 |
|
33 # Legacy aout support for i386 only 34 case `sysctl -n hw.machine_arch` in 35 i386) 36 # Default the a.out ldconfig path. 37 : ${ldconfig_paths_aout=${ldconfig_paths}} 38 _LDC=/usr/lib/aout 39 for i in ${ldconfig_paths_aout} /etc/ld.so.conf; do 40 if [ -r "${i}" ]; then --- 12 unchanged lines hidden --- | 50 # Legacy aout support for i386 only 51 case `sysctl -n hw.machine_arch` in 52 i386) 53 # Default the a.out ldconfig path. 54 : ${ldconfig_paths_aout=${ldconfig_paths}} 55 _LDC=/usr/lib/aout 56 for i in ${ldconfig_paths_aout} /etc/ld.so.conf; do 57 if [ -r "${i}" ]; then --- 12 unchanged lines hidden --- |