This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


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

patch to check ld



This recent change

  2000-07-25  Benjamin Kosnik  <bkoz@gnu.org>
        
        * src/Makefile.am (CXXLINK): Add -Wl,-01 to the link line for
        optimizing/adapting the hash table using GNU ld.
        * src/Makefile.in: Regenerate.
        
assumes that GNU ld will be used.  Which it probably will be, but it
might not be.  Passing -O1 to a native linker would probably hose it.

I have a patch for GLIBCPP_CHECK_LINKER_FEATURE; the new version is

  AC_REQUIRE([AC_PROG_LD])
  if test "$ac_cv_prog_gnu_ld" = "no"; then
    SECTION_LDFLAGS=''
  else

    all the existing checks done by CHECK_LINKER_FEATURE to set
    SECTION_LDFLAGS to something nifty

  fi
  AC_SUBST(SECTION_LDFLAGS)

AC_PROG_LD gets called by the libtool setup, so it should already be set
anyhow.  The idea is to not even bother checking for GNU-ld-only features
when using the native linker.

The -Wl,-O1 flag would then get moved up to here somewhere.


Phil
Looking forward to the optimized hash table (smart linkers rule).


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