OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.9 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../glibc32/glibc32.conf
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- T2-COPYRIGHT-NOTE-END ---
  14. # we need -m32 ... - still needed?
  15. var_insert GCC_WRAPPER_INSERT " " "-m32"
  16. arch_target="`echo $arch_target | arch2arch32`"
  17. echo_status "Set arch_target to $arch_target ..."
  18. set_confopt
  19. # do what glibc does
  20. . $base/package/*/glibc/glibc.conf
  21. # a bit hacky - might need/get a cleanup ...
  22. var_append patchfiles " " "`ls $confdir/../glibc/*.patch`"
  23. if ! atstage native; then
  24. var_append patchfiles " " "`ls $confdir/../glibc/*.patch.cross`"
  25. fi
  26. # do not build the programs
  27. hook_add premake 5 "cat > configparms <<-EOT
  28. build-programs=no
  29. EOT
  30. "
  31. var_remove makeinstopt ' ' 'install'
  32. var_append makeinstopt ' ' 'install-lib-all'
  33. libdir=${libdir%64}
  34. slibdir=lib
  35. # glibc installs some headers it should not
  36. var_append INSTALL_WRAPPER_FILTER "|" "sed -e 's,.*usr/include/.*\.h,/tmp/weg.h,'"
  37. # and last overwrite the postmake function to do less stuff
  38. glibc_postmake()
  39. {
  40. # No wrong absolute path in libc.so
  41. # Obsolete? -ReneR
  42. #
  43. if ! atstage native; then
  44. libcso=$root/usr/$slibdir/libc.so
  45. sed 's,/[^ ]*/,,g' < $libcso > $libcso.new
  46. mv $libcso.new $libcso
  47. fi
  48. # Create /lib/ld-lsb.so.1 symlink
  49. #
  50. if [ -f $root/$slibdir/ld-linux-$arch_machine.so.2 ] ; then
  51. ln -vfs ld-linux-$arch_machine.so.2 $root/$slibdir/ld-lsb.so.1
  52. elif [ -f $root/$slibdir/ld-linux.so.2 ] ; then
  53. ln -vfs ld-linux.so.2 $root/$slibdir/ld-lsb.so.1
  54. fi
  55. }