1.1 --- a/scripts/build/libc/glibc.sh Sun Jan 25 17:53:14 2009 +0000
1.2 +++ b/scripts/build/libc/glibc.sh Sun Mar 08 17:09:39 2009 +0000
1.3 @@ -123,6 +123,9 @@
1.4
1.5 extra_config="${addons_config} $(do_libc_min_kernel_config)"
1.6
1.7 + # Pre-seed the configparms file with values from the config option
1.8 + echo "${CT_LIBC_GLIBC_CONFIGPARMS}" > configparms
1.9 +
1.10 cross_cc=$(CT_Which "${CT_TARGET}-gcc")
1.11 CT_DoLog DEBUG "Using gcc for target: '${cross_cc}'"
1.12 CT_DoLog DEBUG "Extra config passed : '${extra_config}'"
1.13 @@ -288,10 +291,8 @@
1.14 CT_DoLog DEBUG "Extra config args passed: '${extra_config}'"
1.15 CT_DoLog DEBUG "Extra CC args passed : '${extra_cc_args}'"
1.16
1.17 - # Super-H really needs to set configparms as of gcc-3.4/glibc-2.3.2
1.18 - # note: this is awkward, doesn't work well if you need more than one
1.19 - # line in configparms
1.20 - [ "${CT_ARCH_sh}" = "y" ] && echo "no-z-defs=yes" > configparms
1.21 + # Pre-seed the configparms file with values from the config option
1.22 + echo "${CT_LIBC_GLIBC_CONFIGPARMS}" > configparms
1.23
1.24 echo "libc_cv_forced_unwind=yes" > config.cache
1.25 echo "libc_cv_c_cleanup=yes" >> config.cache
1.26 @@ -400,9 +401,8 @@
1.27 CT_DoLog DEBUG "Extra config args passed: '${extra_config}'"
1.28 CT_DoLog DEBUG "Extra CC args passed : '${extra_cc_args}'"
1.29
1.30 - # sh3 and sh4 really need to set configparms as of gcc-3.4/glibc-2.3.2
1.31 - # note: this is awkward, doesn't work well if you need more than one line in configparms
1.32 - echo ${CT_LIBC_GLIBC_CONFIGPARMS} > configparms
1.33 + # Pre-seed the configparms file with values from the config option
1.34 + echo "${CT_LIBC_GLIBC_CONFIGPARMS}" > configparms
1.35
1.36 # For glibc 2.3.4 and later we need to set some autoconf cache
1.37 # variables, because nptl/sysdeps/pthread/configure.in does not