* emulparams/elf64_sparc.sh: Add 64-bit directories to native LIB_PATH.
[deliverable/binutils-gdb.git] / ld / emulparams / elf64_sparc.sh
CommitLineData
252b5132
RH
1SCRIPT_NAME=elf
2ELFSIZE=64
3TEMPLATE_NAME=elf32
4OUTPUT_FORMAT="elf64-sparc"
5TEXT_START_ADDR=0x100000
6MAXPAGESIZE=0x100000
7NONPAGED_TEXT_START_ADDR=0x100000
8ARCH="sparc:v9"
9MACHINE=
10DATA_PLT=
11GENERATE_SHLIB_SCRIPT=yes
12NOP=0x01000000
e76d716a
RH
13
14if [ "x${host}" = "x${target}" ]; then
15 case " $EMULATION_LIBPATH " in
16 *" ${EMULATION_NAME} "*)
17 # Native, and default or emulation requesting LIB_PATH.
18
19 # Linux and Solaris modify the default library search path
20 # to first include a 64-bit specific directory. It's put
21 # in slightly different places on the two systems.
22 case "$target" in
23 sparc*-linux*)
24 suffix=64 ;;
25 sparc*-solaris*)
26 suffix=/sparcv9 ;;
27 esac
28
29 if [ -n "${suffix}" ]; then
30
31 LIB_PATH=/lib${suffix}:/lib
32 LIB_PATH=${LIB_PATH}:/usr/lib${suffix}:/usr/lib
33 if [ -n "${NATIVE_LIB_DIRS}" ]; then
34 LIB_PATH=${LIB_PATH}:`echo ${NATIVE_LIB_DIRS} | sed s/:/${suffix}:/g`${suffix}:${NATIVE_LIB_DIRS}
35 fi
36 if [ "${libdir}" != /usr/lib ]; then
37 LIB_PATH=${LIB_PATH}:${libdir}${suffix}:${libdir}
38 fi
39 if [ "${libdir}" != /usr/local/lib ]; then
40 LIB_PATH=${LIB_PATH}:/usr/local/lib${suffix}:/usr/local/lib
41 fi
42
43 fi
44 ;;
45 esac
46fi
This page took 0.029072 seconds and 4 git commands to generate.