diff --git a/tools/build_macos/build_iperf3.sh b/tools/build_macos/build_iperf3.sh index 3432a3f98..ffe673687 100644 --- a/tools/build_macos/build_iperf3.sh +++ b/tools/build_macos/build_iperf3.sh @@ -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 diff --git a/tools/build_macos/build_openssl.sh b/tools/build_macos/build_openssl.sh index 36077209e..dd0d8a58f 100644 --- a/tools/build_macos/build_openssl.sh +++ b/tools/build_macos/build_openssl.sh @@ -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" @@ -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 \ diff --git a/tools/build_macos/build_openssl_arm.sh b/tools/build_macos/build_openssl_arm.sh new file mode 100644 index 000000000..36077209e --- /dev/null +++ b/tools/build_macos/build_openssl_arm.sh @@ -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/"openssl@1.1" \ + --prefix=/Users/apple/build/openssl +make +make test +make install diff --git a/tools/build_macos/build_openvpn_arm.sh b/tools/build_macos/build_openvpn_arm.sh new file mode 100644 index 000000000..4aaf9210b --- /dev/null +++ b/tools/build_macos/build_openvpn_arm.sh @@ -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