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.

43 lines
1.1 KiB

  1. pkg_glibc32_preconf(){
  2. if [ $buildloop -eq 1 ]; then
  3. # after finishing buildloop 1 we have to get back to the
  4. # toplevel source directory
  5. hook_add postmake 9 'cd .. ; pwd'
  6. fi
  7. if [ $buildloop -eq 2 ]; then
  8. echo_status "Building 32 Bit Libraries."
  9. # we need -m32 ... - still needed?
  10. var_insert GCC_WRAPPER_INSERT " " "-m32"
  11. arch_target="`echo $arch_target | arch2arch32`"
  12. echo_status "Set arch_target to $arch_target ..."
  13. set_confopt
  14. # do not build the programs
  15. hook_add premake 5 "cat > configparms <<-EOT
  16. build-programs=no
  17. EOT
  18. "
  19. libdir=${libdir%64}32
  20. slibdir=lib32
  21. var_remove makeinstopt ' ' 'install'
  22. var_append makeinstopt ' ' 'install-lib-all'
  23. # glibc installs some headers it should not
  24. var_append INSTALL_WRAPPER_FILTER "|" "sed -e 's,.*usr/include/.*\.h,/tmp/weg.h,'"
  25. fi
  26. }
  27. if [ "$SDECFG_MULTILIB" != 1 ]; then
  28. var_append patchfiles ' ' "$confdir/$pkg-$ver*pure64*.diff"
  29. else
  30. var_append patchfiles ' ' "$confdir/$pkg-$ver*multilib*.diff"
  31. if ! atstage toolchain; then
  32. buildloops=2
  33. fi
  34. hook_add preconf 5 "pkg_glibc32_preconf"
  35. fi