config.mak.dist 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.
  24. # BINUTILS_VER = 2.25.1
  25. # GCC_VER = 5.2.0
  26. # MUSL_VER = git-master
  27. # Recommended options for faster/simpler build:
  28. # COMMON_CONFIG += --disable-nls
  29. # COMMON_CONFIG += MAKEINFO=/bin/false
  30. # GCC_CONFIG += --enable-languages=c,c++
  31. # GCC_CONFIG += --disable-libquadmath --disable-decimal-float
  32. # GCC_CONFIG += --disable-multilib
  33. # The following are options needed to make certain targets work right.
  34. # They may be moved to main build logic rather than config.mak at some
  35. # point in the future.
  36. ifeq ($(TARGET),sh2eb-linux-muslfdpic)
  37. GCC_CONFIG += --with-cpu=mj2
  38. GCC_CONFIG += --enable-fdpic
  39. endif
  40. ifeq ($(TARGET),mips64-linux-musl)
  41. GCC_CONFIG += --with-abi=64
  42. endif
  43. ifeq ($(TARGET),arm-linux-musleabihf)
  44. GCC_CONFIG += --with-float=hard
  45. endif