mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 12:37:37 +00:00
ff1e1c8393
Apparently it is necessary to have LIBRARY_PATH set in the environment.
29 lines
723 B
Bash
29 lines
723 B
Bash
#!/bin/sh
|
|
if [ ${3} = "YES" ]; then
|
|
if echo "${PATH}" | grep -c \; >/dev/null; then
|
|
PATH=${PATH}\;${1}/bin\;${1}/lib
|
|
else
|
|
# ARG1 is ${1} with the drive letter escaped.
|
|
if echo "${1}" | grep -c : >/dev/null; then
|
|
ARG1=`(cd ${1}; pwd)`
|
|
else
|
|
ARG1=${1}
|
|
fi
|
|
PATH=${PATH}:${ARG1}/bin:${ARG1}/lib
|
|
fi
|
|
export PATH
|
|
else
|
|
LIBPATH=${1}/lib
|
|
export LIBPATH
|
|
SHLIB_PATH=${1}/lib
|
|
export SHLIB_PATH
|
|
LD_LIBRARY_PATH=${1}/lib
|
|
export LD_LIBRARY_PATH
|
|
DYLD_LIBRARY_PATH=${1}/lib
|
|
export DYLD_LIBRARY_PATH
|
|
LIBRARY_PATH=${1}/lib:$LIBRARY_PATH
|
|
export LIBRARY_PATH
|
|
fi
|
|
echo ${2}/shlibsign -v -i ${4}
|
|
${2}/shlibsign -v -i ${4}
|