This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] detect support of .hidden when using combined tree with LynxOS


Hi,

When building from a combined tree, configure looks at the Makefile of
ld to decide whether ELF is supported by the target.  This is used
later to determine if .hidden is available in the linker.

The patch changes that if it finds lynx as the ld emulation it should
conclude that the linker is ELF.  The patch fixes the
gcc.dg/visibility* failures when testing from the combined tree.

Is the patch OK to apply?

Adam

2004-08-10  Adam Nemet  <anemet@lnxw.com> 
 
        * configure.ac (AC_MSG_CHECKING(what linker to use)):
        in_tree_ld_is_elf should be true for LynxOS.
        * configure: Regenerate. 

Index: configure.ac 
=================================================================== 
RCS file: /cvs/gcc/gcc/gcc/configure.ac,v 
retrieving revision 2.50 
diff -u -p -r2.50 configure.ac 
--- configure.ac        23 Jul 2004 06:59:34 -0000      2.50 
+++ configure.ac        10 Aug 2004 00:33:58 -0000 
@@ -1852,7 +1852,8 @@ elif test -f $gcc_cv_ld_gld_srcdir/confi 
        in_tree_ld=yes 
        in_tree_ld_is_elf=no 
        if (grep 'EMUL = .*elf' ../ld/Makefile \ 
-           || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then 
+           || grep 'EMUL = .*linux' ../ld/Makefile \ 
+           || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then 
          in_tree_ld_is_elf=yes 
        fi 
        for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configur\e $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]