create_links.sh 672 B

123456789101112131415161718192021222324
  1. #! /bin/sh
  2. #
  3. # Creates the minimally necessary links to build w/ the Makefile.in files
  4. DIRS="ldso libc libcrypt libintl libm libnsl libpthread libresolv librt libutil"
  5. DIRS2="ldso/ldso ldso/libdl libpthread/linuxthreads libpthread/linuxthreads_db"
  6. OBJ4="common arm i386 mips powerpc x86_64"
  7. for x in ${DIRS} ; do
  8. rm -f ${x}/Makefile
  9. ln -sf ../extra/scripts/Makefile.libs.lvl1 ${x}/Makefile
  10. done
  11. for x in ${DIRS2} ; do
  12. rm -f ${x}/Makefile
  13. ln -sf ../../extra/scripts/Makefile.libs.lvl2 ${x}/Makefile
  14. done
  15. for x in ${OBJ4} ; do
  16. rm -f libc/sysdeps/linux/${x}/Makefile
  17. ln -sf ../../../../extra/scripts/Makefile.objs.lvl4 libc/sysdeps/linux/${x}/Makefile
  18. done
  19. exit 0