Re-enable linking for sh5:
[binutils.git] / libiberty / config.table
blob6118a9c82563ffb7861811ab91e24a4950f41adf
1 # Don't build the shared library for build.
2 if [ -n "${with_build_subdir}" ]; then
3   enable_shared=no
4 fi
6 frag=
7 case "${host}" in
8   rs6000-ibm-aix3.1 | rs6000-ibm-aix)
9                         frag=mh-aix ;;
10   *-*-cxux7*)           frag=mh-cxux7 ;;
11   *-*-freebsd2.1.*)     frag=mh-fbsd21 ;;
12   *-*-freebsd2.2.[012]) frag=mh-fbsd21 ;;
13   i370-*-opened*)       frag=mh-openedition ;;
14   i[345]86-*-windows*)  frag=mh-windows ;;
15 esac
17 if [ -n "${frag}" ]; then
18   frags=${libiberty_topdir}/libiberty/config/$frag
19 else
20   frags=
23 # If they didn't specify --enable-shared, don't generate shared libs.
24 case "${enable_shared}" in
25   yes) shared=yes ;;
26   no) shared=no ;;
27   "") shared=no ;;
28   *) shared=yes ;;
29 esac
30 if [ "${shared}" = "yes" ]; then
31   frag=
32   case "${host}" in
33     *-*-cygwin*)        ;;
34     alpha*-*-linux*)    frag=mh-elfalphapic ;;
35     arm*-*-*)           frag=mh-armpic ;;
36     hppa*-*-*)          frag=mh-papic ;;
37     i[3456]86-*-*)      frag=mh-x86pic ;;
38     powerpc*-*-aix*)    ;;
39     powerpc*-*-*)       frag=mh-ppcpic ;;
40     sparc*-*-*)         frag=mh-sparcpic ;;
41     *)                  frag=mh-${host_cpu}pic ;;
42   esac
43   if [ -n "${frag}" ]; then
44     frags="${frags} ${libiberty_topdir}/config/${frag}"
45   fi
48 echo "# Warning: this fragment is automatically generated" > temp-frag
50 for frag in ${frags}; do
51   if [ -f ${frag} ]; then
52     echo "Appending ${frag} to xhost-mkfrag"
53     echo "# Following fragment copied from ${frag}" >> temp-frag
54     cat ${frag} >> temp-frag
55   fi
56 done
58 # record if we want to build shared libs.
59 if [ "${shared}" = "yes" ]; then
60   echo enable_shared = yes >> temp-frag
61 else
62   echo enable_shared = no >> temp-frag
65 frag=xhost-mkfrag
66 ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag