OpenSDE Framework (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.

57 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: architecture/x86-64/pkg_glibc_post.conf
  5. # Copyright (C) 2007 - 2008 The OpenSDE 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. # --- SDE-COPYRIGHT-NOTE-END ---
  14. pkg_glibc32_preconf(){
  15. if [ $buildloop -eq 1 ]; then
  16. # after finishing buildloop 1 we have to get back to the
  17. # toplevel source directory
  18. hook_add postmake 9 'cd .. ; pwd'
  19. fi
  20. if [ $buildloop -eq 2 ]; then
  21. echo_status "Building 32 Bit Libraries (Multilib support enabled)"
  22. # we need -m32 ... - still needed?
  23. var_insert GCC_WRAPPER_INSERT " " "-m32"
  24. arch_target="`echo $arch_target | arch2arch32`"
  25. echo_status "Setting arch_target to $arch_target"
  26. set_confopt
  27. # do not build the programs
  28. hook_add premake 5 "cat > configparms <<-EOT
  29. build-programs=no
  30. EOT
  31. "
  32. libdir=${libdir%64}32
  33. slibdir=lib32
  34. var_remove makeinstopt ' ' 'install'
  35. var_append makeinstopt ' ' 'install-lib-all'
  36. # glibc installs some headers it should not
  37. var_append INSTALL_WRAPPER_FILTER "|" "sed -e 's,.*usr/include/.*\.h,/tmp/weg.h,'"
  38. fi
  39. }
  40. if [ "$SDECFG_MULTILIB" != 1 ]; then
  41. var_append patchfiles ' ' "$confdir/*pure64*.diff"
  42. else
  43. var_append patchfiles ' ' "$confdir/*multilib*.diff"
  44. if ! atstage toolchain; then
  45. buildloops=2
  46. fi
  47. hook_add preconf 5 "pkg_glibc32_preconf"
  48. fi