source: npl/toolchains/crosstool/ldconfig.patch @ 551a8d2

Last change on this file since 551a8d2 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.9 KB
  • crosstool-0.37/crosstool.sh

    old new  
    649649then
    650650  cd build-glibc
    651651  make LD=${TARGET}-ld RANLIB=${TARGET}-ranlib
    652   # note: should do full install and then fix linker scripts, but this is faster
    653   make install_root=${SYSROOT} $GLIBC_SYSROOT_ARG install-bin install-rootsbin install-sbin install-data install-others
     652  make install install_root=${SYSROOT} $GLIBC_SYSROOT_ARG
     653
     654  # Fix problems in linker scripts.
     655  #
     656  # 1. Remove absolute paths
     657  # Any file in a list of known suspects that isn't a symlink is assumed to be a linker script.
     658  # FIXME: test -h is not portable
     659  # FIXME: probably need to check more files than just these three...
     660  # Need to use sed instead of just assuming we know what's in libc.so because otherwise alpha breaks
     661  # But won't need to do this at all once we use --with-sysroot (available in gcc-3.3.3 and up)
     662  #
     663  # 2. Remove lines containing BUG per http://sources.redhat.com/ml/bug-glibc/2003-05/msg00055.html,
     664  # needed to fix gcc-3.2.3/glibc-2.3.2 targeting arm
     665  #
     666  # To make "strip *.so.*" not fail (ptxdist does this), rename to .so_orig rather than .so.orig
     667  for file in libc.so libpthread.so libgcc_s.so; do
     668    for lib in lib lib64 usr/lib usr/lib64; do
     669          if test -f ${SYSROOT}/$lib/$file && test ! -h ${SYSROOT}/$lib/$file; then
     670                  mv ${SYSROOT}/$lib/$file ${SYSROOT}/$lib/${file}_orig
     671                  if test -z "$USE_SYSROOT"; then
     672                    sed 's,/usr/lib/,,g;s,/usr/lib64/,,g;s,/lib/,,g;s,/lib64/,,g;/BUG in libc.scripts.output-format.sed/d' < ${SYSROOT}/$lib/${file}_orig > ${SYSROOT}/$lib/$file
     673                  else
     674                    sed '/BUG in libc.scripts.output-format.sed/d' < ${SYSROOT}/$lib/${file}_orig > ${SYSROOT}/$lib/$file
     675                  fi
     676          fi
     677      done
     678  done
     679  cd ..
    654680fi
Note: See TracBrowser for help on using the repository browser.