[patch] skip tpf configure tests

View: New views
3 Messages — Rating Filter:   Alert me  

[patch] skip tpf configure tests

by DJ Delorie-2 :: Rate this Message:

| View Threaded | Show Only this Message


        * crossconfig.m4: Since we know that all TPF builds are cross-
        builds and cannot run configuration-time link tests, do not
        allow it; just go with known supported linker options.
        * configure: Regenerate (called as GLIBCXX_CROSSCONFIG).

Index: crossconfig.m4
===================================================================
--- crossconfig.m4 (revision 187002)
+++ crossconfig.m4 (working copy)
@@ -219,14 +219,14 @@ case "${host}" in
     AC_DEFINE(HAVE_ISNANF)
     AC_DEFINE(HAVE_MODFF)
     AC_DEFINE(HAVE_HYPOT)
     ;;
   *-tpf)
     SECTION_FLAGS='-ffunction-sections -fdata-sections'
+    SECTION_LDFLAGS='-Wl,--gc-sections $SECTION_LDFLAGS'
     AC_SUBST(SECTION_FLAGS)
-    GLIBCXX_CHECK_LINKER_FEATURES
     AC_DEFINE(HAVE_FINITE)
     AC_DEFINE(HAVE_FINITEF)
     AC_DEFINE(HAVE_FREXPF)
     AC_DEFINE(HAVE_HYPOTF)
     AC_DEFINE(HAVE_ISINF)
     AC_DEFINE(HAVE_ISINFF)

Re: [patch] skip tpf configure tests

by Benjamin Kosnik :: Rate this Message:

| View Threaded | Show Only this Message


> * crossconfig.m4: Since we know that all TPF builds are cross-
> builds and cannot run configuration-time link tests, do not
> allow it; just go with known supported linker options.
> * configure: Regenerate (called as GLIBCXX_CROSSCONFIG).

OK

-benjamin

Re: [patch] skip tpf configure tests

by DJ Delorie-2 :: Rate this Message:

| View Threaded | Show Only this Message


> > * crossconfig.m4: Since we know that all TPF builds are cross-
> > builds and cannot run configuration-time link tests, do not
> > allow it; just go with known supported linker options.
> > * configure: Regenerate (called as GLIBCXX_CROSSCONFIG).
>
> OK

Thanks!  Committed.