mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
39750439bf
* build: Enable C++11 build, require C++11 compiler Implements #6211. * depends: use c++11 * build: update ax_cxx_compile_stdcxx to serial 4 * build: force a c++ standard to be specified Newer compilers may switch to newer standards by default. For example, gcc6 uses std=gnu++14 by default. * c++11: fix libbdb build against libc++ in c++11 mode atomic_init clashes with * c++11: CAccountingEntry must be defined before use in a list c++11ism. This fixes builds against libc++.
18 lines
620 B
Makefile
18 lines
620 B
Makefile
OSX_MIN_VERSION=10.7
|
|
OSX_SDK_VERSION=10.9
|
|
OSX_SDK=$(SDK_PATH)/MacOSX$(OSX_SDK_VERSION).sdk
|
|
LD64_VERSION=241.9
|
|
darwin_CC=clang -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -mlinker-version=$(LD64_VERSION)
|
|
darwin_CXX=clang++ -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -mlinker-version=$(LD64_VERSION) -stdlib=libc++
|
|
|
|
darwin_CFLAGS=-pipe
|
|
darwin_CXXFLAGS=$(darwin_CFLAGS)
|
|
|
|
darwin_release_CFLAGS=-O2
|
|
darwin_release_CXXFLAGS=$(darwin_release_CFLAGS)
|
|
|
|
darwin_debug_CFLAGS=-O1
|
|
darwin_debug_CXXFLAGS=$(darwin_debug_CFLAGS)
|
|
|
|
darwin_native_toolchain=native_cctools
|