Browse Source
update darwin makefile
use gcc/g++ v6
include correct gcc libs v6.4.0
pull/4/head
ca333
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
zcutil/build-mac.sh
|
|
@ -1,6 +1,6 @@ |
|
|
|
#!/bin/bash |
|
|
|
export CC=gcc-5 |
|
|
|
export CXX=g++-5 |
|
|
|
export CC=gcc-6 |
|
|
|
export CXX=g++-6 |
|
|
|
export LIBTOOL=libtool |
|
|
|
export AR=ar |
|
|
|
export RANLIB=ranlib |
|
|
@ -44,7 +44,7 @@ make "$@" -C ./depends/ V=1 NO_QT=1 NO_PROTON=1 |
|
|
|
|
|
|
|
./autogen.sh |
|
|
|
CPPFLAGS="-I$PREFIX/include -arch x86_64" LDFLAGS="-L$PREFIX/lib -arch x86_64 -Wl,-no_pie" \ |
|
|
|
CXXFLAGS='-arch x86_64 -I/usr/local/Cellar/gcc5/5.4.0/include/c++/5.4.0 -I$PREFIX/include -fwrapv -fno-strict-aliasing -Werror -g -Wl,-undefined -Wl,dynamic_lookup' \ |
|
|
|
CXXFLAGS='-arch x86_64 -I/usr/local/Cellar/gcc\@6/6.4.0_2/include/c++/6.4.0/ -I$PREFIX/include -fwrapv -fno-strict-aliasing -Werror -g -Wl,-undefined -Wl,dynamic_lookup' \ |
|
|
|
./configure --prefix="${PREFIX}" --with-gui=no "$HARDENING_ARG" "$LCOV_ARG" |
|
|
|
|
|
|
|
make "$@" V=1 NO_GTEST=1 STATIC=1 |
|
|
|