This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Harold, Mike, All, On Saturday 14 November 2009 16:23:18 Mike Frysinger wrote: > On Wednesday 11 November 2009 18:37:44 Harold Grovesteen wrote: > > Mike Frysinger wrote: > > >under Gentoo, a bunch of cache vars > > >are forced just for the headers step as there is no compiler to test. > > > those include mlong double tests. > > > libc_cv_mlong_double_128=yes > > > libc_cv_mlong_double_128ibm=yes > > How do I achieve the equivalent of this with crosstool-ng? > no idea. yann might know. just export those vars into the environment. this > should be safe to do for all targets during the headers configure step only. There is CT_LIBC_GLIBC_CONFIGPARMS that can be set in the menuconfig. The value set in this variable is used to create a file named 'configparms' in the top-level of the build dir. That file is then included from the Makeconfig makefile. It is possible to use it to pass one value. Passing more is not yet possible. I can work something to handle more. Care to try the attached patch? Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | `------------------------------^-------^------------------^--------------------'
diff --git a/config/libc/glibc-eglibc.in-common b/config/libc/glibc-eglibc.in-common --- a/config/libc/glibc-eglibc.in-common +++ b/config/libc/glibc-eglibc.in-common @@ -38,8 +38,8 @@ Unless you are building a toolchain for sh3/4, you should leave that empty. - Note: this is awkward, and doesn't work well if you need more than one - line in configparms + Note: If you need to pass more than one value, separate them with + '\n'. Eg.: var1=val1\nvar2=val2 config LIBC_GLIBC_EXTRA_CFLAGS string diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh --- a/scripts/build/libc/glibc.sh +++ b/scripts/build/libc/glibc.sh @@ -141,7 +141,7 @@ extra_config+=("$(do_libc_min_kernel_config)") # Pre-seed the configparms file with values from the config option - echo "${CT_LIBC_GLIBC_CONFIGPARMS}" > configparms + printf "${CT_LIBC_GLIBC_CONFIGPARMS}" > configparms cross_cc=$(CT_Which "${CT_TARGET}-gcc") CT_DoLog DEBUG "Using gcc for target: '${cross_cc}'" @@ -309,7 +309,7 @@ CT_DoLog DEBUG "Extra CC args passed : '${extra_cc_args}'" # Pre-seed the configparms file with values from the config option - echo "${CT_LIBC_GLIBC_CONFIGPARMS}" > configparms + printf "${CT_LIBC_GLIBC_CONFIGPARMS}" > configparms echo "libc_cv_forced_unwind=yes" > config.cache echo "libc_cv_c_cleanup=yes" >> config.cache @@ -418,7 +418,7 @@ CT_DoLog DEBUG "Extra CC args passed : '${extra_cc_args}'" # Pre-seed the configparms file with values from the config option - echo "${CT_LIBC_GLIBC_CONFIGPARMS}" > configparms + printf "${CT_LIBC_GLIBC_CONFIGPARMS}" > configparms # For glibc 2.3.4 and later we need to set some autoconf cache # variables, because nptl/sysdeps/pthread/configure.in does not
-- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |