config.mak.dist 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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, mpfr and isl will suppress download and
  25. # in-tree build of these libraries and instead depend on pre-installed
  26. # libraries when available (isl is optional and not set by default).
  27. # Setting a blank version for linux will suppress installation of kernel
  28. # headers, which are not needed unless compiling programs that use them.
  29. # BINUTILS_VER = 2.25.1
  30. # GCC_VER = 5.2.0
  31. # MUSL_VER = git-master
  32. # GMP_VER =
  33. # MPC_VER =
  34. # MPFR_VER =
  35. # ISL_VER =
  36. # LINUX_VER =
  37. # By default source archives are downloaded with wget. curl is also an option.
  38. # DL_CMD = wget -c -O
  39. # DL_CMD = curl -C - -L -o
  40. # Check sha-1 hashes of downloaded source archives. On gnu systems this is
  41. # usually done with sha1sum.
  42. # SHA1_CMD = sha1sum -c
  43. # SHA1_CMD = sha1 -c
  44. # SHA1_CMD = shasum -a 1 -c
  45. # Something like the following can be used to produce a static-linked
  46. # toolchain that's deployable to any system with matching arch, using
  47. # an existing musl-targeted cross compiler. This only works if the
  48. # system you build on can natively (or via binfmt_misc and qemu) run
  49. # binaries produced by the existing toolchain (in this example, i486).
  50. # COMMON_CONFIG += CC="i486-linux-musl-gcc -static --static" CXX="i486-linux-musl-g++ -static --static"
  51. # Recommended options for smaller build for deploying binaries:
  52. # COMMON_CONFIG += CFLAGS="-g0 -Os" CXXFLAGS="-g0 -Os" LDFLAGS="-s"
  53. # Options you can add for faster/simpler build at the expense of features:
  54. # COMMON_CONFIG += --disable-nls
  55. # GCC_CONFIG += --disable-libquadmath --disable-decimal-float
  56. # GCC_CONFIG += --disable-libitm
  57. # GCC_CONFIG += --disable-fixed-point
  58. # GCC_CONFIG += --disable-lto
  59. # By default C and C++ are the only languages enabled, and these are
  60. # the only ones tested and known to be supported. You can uncomment the
  61. # following and add other languages if you want to try getting them to
  62. # work too.
  63. # GCC_CONFIG += --enable-languages=c,c++
  64. # You can keep the local build path out of your toolchain binaries and
  65. # target libraries with the following, but then gdb needs to be told
  66. # where to look for source files.
  67. # COMMON_CONFIG += --with-debug-prefix-map=$(CURDIR)=