ldconfig (115124) | ldconfig (117077) |
---|---|
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 115124 2003-05-18 03:39:39Z mtm $ | 4# $FreeBSD: head/etc/rc.d/ldconfig 117077 2003-06-30 15:02:05Z trhodes $ |
5# 6 7# PROVIDE: ldconfig 8# REQUIRE: mountall mountcritremote 9# BEFORE: DAEMON 10# KEYWORD: FreeBSD NetBSD 11 12. /etc/rc.subr --- 7 unchanged lines hidden (view full) --- 20{ 21 case ${OSTYPE} in 22 FreeBSD) 23 _ins= 24 ldconfig=${ldconfig_command} 25 checkyesno ldconfig_insecure && _ins="-i" 26 if [ -x "${ldconfig_command}" ]; then 27 _LDC=/usr/lib | 5# 6 7# PROVIDE: ldconfig 8# REQUIRE: mountall mountcritremote 9# BEFORE: DAEMON 10# KEYWORD: FreeBSD NetBSD 11 12. /etc/rc.subr --- 7 unchanged lines hidden (view full) --- 20{ 21 case ${OSTYPE} in 22 FreeBSD) 23 _ins= 24 ldconfig=${ldconfig_command} 25 checkyesno ldconfig_insecure && _ins="-i" 26 if [ -x "${ldconfig_command}" ]; then 27 _LDC=/usr/lib |
28 for i in ${ldconfig_paths}; do 29 if [ -d "${i}" ]; then | 28 for i in ${ldconfig_paths} /etc/ld-elf.so.conf; do 29 if [ -r "${i}" ]; then |
30 _LDC="${_LDC} ${i}" 31 fi 32 done 33 echo 'ELF ldconfig path:' ${_LDC} 34 ${ldconfig} -elf ${_ins} ${_LDC} 35 36 # Legacy aout support for i386 only 37 case `sysctl -n hw.machine_arch` in 38 i386) 39 # Default the a.out ldconfig path. 40 : ${ldconfig_paths_aout=${ldconfig_paths}} 41 _LDC=/usr/lib/aout | 30 _LDC="${_LDC} ${i}" 31 fi 32 done 33 echo 'ELF ldconfig path:' ${_LDC} 34 ${ldconfig} -elf ${_ins} ${_LDC} 35 36 # Legacy aout support for i386 only 37 case `sysctl -n hw.machine_arch` in 38 i386) 39 # Default the a.out ldconfig path. 40 : ${ldconfig_paths_aout=${ldconfig_paths}} 41 _LDC=/usr/lib/aout |
42 for i in ${ldconfig_paths_aout}; do 43 if [ -d "${i}" ]; then | 42 for i in ${ldconfig_paths_aout} /etc/ld.so.conf; do 43 if [ -r "${i}" ]; then |
44 _LDC="${_LDC} ${i}" 45 fi 46 done 47 echo 'a.out ldconfig path:' ${_LDC} 48 ${ldconfig} -aout ${_ins} ${_LDC} 49 ;; 50 esac 51 fi --- 14 unchanged lines hidden --- | 44 _LDC="${_LDC} ${i}" 45 fi 46 done 47 echo 'a.out ldconfig path:' ${_LDC} 48 ${ldconfig} -aout ${_ins} ${_LDC} 49 ;; 50 esac 51 fi --- 14 unchanged lines hidden --- |