16 Commits

Author SHA1 Message Date
bsharet 3ea06c9ed3 Don't build universal binaries by default (#366)
* Don't build universal binaries by default

Starting Xcode 10 beta, there's no support for i386.
This commit changes the default build on iOS to regular libraries
instead of universal binaries.
Build of universal binaries is still supported with macos-universal.

* Add macos-no-universal option (compatibility)

Keep the default to be macos-no-universal, but add it as an option as
well for backward compatibility.
2018-07-26 00:29:31 +08:00
Christian Sharpsten 3e67c1d488 Auto-detect install libdir to enable multi-arch debian builds (#345)
When compiling on linux, use GNUInstallDirs to automatically determine
the appropriate libdir path for multi-arch builds instead of hardcoding
lib/ or lib64/. GNUInstallDirs should follow the FHS appropriately for
non-debian platforms that place libs in lib64/. This also removes the
need to specify `lib64` on the command line when building for a
non-debian system that follows the linux FHS.

When compiling with cmake directly on debian and specifying
`-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_LIBRARY_ARCHITECTURE=<arch>`, the
libdir should be set to /usr/lib/<arch>/.
2018-04-01 10:38:32 +08:00
Nguyen Anh Quynh 2fdd772edd make.sh: add 2 new options lib_only & lib32 2016-07-21 19:56:44 +08:00
root ef29383184 make.sh: use . instead of source for better compatibility with Ubuntu shell 2016-07-19 21:35:27 +08:00
Nguyen Anh Quynh 91719bda9b make use of LLVM_LIBDIR_SUFFIX option, and rename 'fhs' to 'lib64' 2016-07-19 21:28:36 +08:00
Nguyen Anh Quynh 02df6d6dce make use of LLVM_LIBDIR_SUFFIX 2016-07-19 21:39:38 +08:00
Nguyen Anh Quynh cb3824a8cb support Linux FHS with a new compile option 'fhs'. see issue #213 2016-07-19 16:15:46 +08:00
Nguyen Anh Quynh 53e3609a83 MacOS: debug build also compiles universal binaries 2016-07-15 02:50:46 +08:00
Nguyen Anh Quynh 1961092f2d build universal binaries on MacOS by default 2016-07-15 02:44:58 +08:00
Nguyen Anh Quynh 23bca5ce36 fix function declaration in make-*sh 2016-07-15 00:52:24 +08:00
Nguyen Anh Quynh 0faa856bed make-*sh now can build MacOS universal binaries 2016-07-15 00:30:47 +08:00
Nguyen Anh Quynh e0fb33fbed add some instructions on 'debug' option of make-*sh 2016-05-19 15:11:42 +08:00
Nguyen Anh Quynh 8b15d76c1a allow to build with DEBUG option for make-share.sh & make-lib.sh 2016-05-14 01:15:38 +08:00
Richo Healey 90f0598181 Show what the make scripts are doing, fail quickly 2016-04-28 20:07:46 -07:00
Nguyen Anh Quynh 11efb96bdd do not rm -rf in make-*.sh 2016-04-28 22:12:51 +08:00
Nguyen Anh Quynh 9f1a353f68 import 2016-04-28 21:06:49 +08:00