Skip to content

Commit

Permalink
Update macos build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
zachhuff386 committed Nov 18, 2020
1 parent 3785126 commit 3de06be
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tools/build_macos/build_iperf3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export LINKFLAGS="-mmacosx-version-min=11.0"
./bootstrap.sh
./configure \
--disable-profiling \
--prefix=/Users/apple/build/iperf3a
--prefix=/Users/apple/build/iperf3
make install
4 changes: 1 addition & 3 deletions tools/build_macos/build_openssl.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
cp ../10-main.conf ./Configurations/10-main.conf

export CFLAGS="-mmacosx-version-min=11.0"
export CXXFLAGS="-mmacosx-version-min=11.0"
export CPPFLAGS="-mmacosx-version-min=11.0"
Expand All @@ -8,7 +6,7 @@ export LINKFLAGS="-mmacosx-version-min=11.0"
unset OPENSSL_LOCAL_CONFIG_DIR

perl ./Configure \
darwin64-arm64-cc \
darwin64-x86_64-cc \
enable-ec_nistp_64_gcc_128 \
zlib \
no-asm \
Expand Down
20 changes: 20 additions & 0 deletions tools/build_macos/build_openssl_arm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
cp ../10-main.conf ./Configurations/10-main.conf

export CFLAGS="-mmacosx-version-min=11.0"
export CXXFLAGS="-mmacosx-version-min=11.0"
export CPPFLAGS="-mmacosx-version-min=11.0"
export LINKFLAGS="-mmacosx-version-min=11.0"

unset OPENSSL_LOCAL_CONFIG_DIR

perl ./Configure \
darwin64-arm64-cc \
enable-ec_nistp_64_gcc_128 \
zlib \
no-asm \
no-shared \
--openssldir=etc/"[email protected]" \
--prefix=/Users/apple/build/openssl
make
make test
make install
35 changes: 35 additions & 0 deletions tools/build_macos/build_openvpn_arm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
export CFLAGS="-mmacosx-version-min=11.0"
export CXXFLAGS="-mmacosx-version-min=11.0"
export CPPFLAGS="-mmacosx-version-min=11.0"
export LINKFLAGS="-mmacosx-version-min=11.0"

make clean
OPENSSL_CFLAGS="-I/Users/apple/build/openssl/include" \
OPENSSL_SSL_CFLAGS="-I/Users/apple/build/openssl/include" \
OPENSSL_CRYPTO_CFLAGS="-I/Users/apple/build/openssl/include" \
OPENSSL_LIBS="/Users/apple/build/openssl/lib/libssl.a -lz /Users/apple/build/openssl/lib/libcrypto.a -lz" \
OPENSSL_SSL_LIBS="/Users/apple/build/openssl/lib/libssl.a" \
OPENSSL_CRYPTO_LIBS="/Users/apple/build/openssl/lib/libcrypto.a -lz" \
PKCS11_HELPER_CFLAGS="-I/Users/apple/build/pkcs11-helper/include" \
PKCS11_HELPER_LIBS="-L/Users/apple/build/pkcs11-helper/lib -lpkcs11-helper" \
LZO_CFLAGS="-I/Users/apple/build/lzo/include" \
LZO_LIBS="/Users/apple/build/lzo/lib/liblzo2.a" \
OPTIONAL_LZO_LIBS="/Users/apple/build/lzo/lib/liblzo2.a" \
LZ4_CFLAGS="-I/Users/apple/build/lz4/include" \
LZ4_LIBS="/Users/apple/build/lz4/lib/liblz4.a" \
./configure \
--disable-debug \
--disable-dependency-tracking \
--disable-silent-rules \
--disable-server \
--disable-management \
--disable-plugins \
--disable-plugin-auth-pam \
--disable-plugin-down-root \
--with-crypto-library=openssl \
--build=x86_64-apple-darwin \
--enable-pkcs11 \
--enable-static \
--disable-shared \
--prefix=/Users/apple/build/openvpn
make install

0 comments on commit 3de06be

Please sign in to comment.