config.mak.dist 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #
  2. # config.mak.dist - sample musl-cross-make configuration
  3. #
  4. # Copy to config.mak and edit as desired.
  5. #
  6. # There is no default TARGET; you must select one here or on the make
  7. # command line. Some examples:
  8. # TARGET = i486-linux-musl
  9. # TARGET = x86_64-linux-musl
  10. # TARGET = arm-linux-musleabi
  11. # TARGET = arm-linux-musleabihf
  12. # TARGET = sh2eb-linux-muslfdpic
  13. # ...
  14. # By default, cross compilers are installed to ./output under the top-level
  15. # musl-cross-make directory and can later be moved wherever you want them.
  16. # To install directly to a specific location, set it here. Multiple targets
  17. # can safely be installed in the same location. Some examples:
  18. # OUTPUT = /opt/cross
  19. # OUTPUT = /usr/local
  20. # By default, latest supported release versions of musl and the toolchain
  21. # components are used. You can override those here, but the version selected
  22. # must be supported (under hashes/ and patches/) to work. For musl, you
  23. # can use "git-refname" (e.g. git-master) instead of a release. Setting a
  24. # blank version for gmp, mpc, and mpfr will suppress download and in-tree
  25. # build of these libraries and instead depend on pre-installed libraries.
  26. # BINUTILS_VER = 2.25.1
  27. # GCC_VER = 5.2.0
  28. # MUSL_VER = git-master
  29. # GMP_VER =
  30. # MPC_VER =
  31. # MPFR_VER =
  32. # Recommended options for faster/simpler build:
  33. # MAKE += MAKEINFO=true
  34. # COMMON_CONFIG += --disable-nls
  35. # GCC_CONFIG += --enable-languages=c,c++
  36. # GCC_CONFIG += --disable-libquadmath --disable-decimal-float
  37. # GCC_CONFIG += --disable-multilib
  38. # The following are options needed to make certain targets work right.
  39. # They may be moved to main build logic rather than config.mak at some
  40. # point in the future.
  41. ifeq ($(TARGET),sh2eb-linux-muslfdpic)
  42. GCC_CONFIG += --with-cpu=mj2
  43. GCC_CONFIG += --enable-fdpic
  44. endif
  45. ifeq ($(TARGET),mips64-linux-musl)
  46. GCC_CONFIG += --with-abi=64
  47. endif
  48. ifeq ($(TARGET),arm-linux-musleabihf)
  49. GCC_CONFIG += --with-float=hard
  50. endif