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.

35 lines
1.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/musl.conf
  5. # Copyright (C) 2012 - 2013 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. # translate $arch for being usable with musl
  15. musl_arch="$( echo $arch | arch2uname )"
  16. if atstage toolchain; then
  17. confopt="--prefix=$base/build/$SDECFG_ID/usr \$extraconfopt"
  18. makeopt="ARCH=$musl_arch"
  19. var_append makeopt ' ' "include/bits"
  20. makeinstopt="ARCH=$musl_arch"
  21. fi
  22. # if musl is default libc
  23. if [ "$SDECFG_LIBC" == "musl" ]; then
  24. # disable gcc wrapper script
  25. var_append extraconfopt ' ' "--disable-gcc-wrapper"
  26. fi
  27. # always install the headers even if already present in the sandbox
  28. hook_add postpatch 9 "touch include/*.h include/*/*.h"
  29. var_append makeinstopt ' ' "install-headers"