Skip to content

Commit

Permalink
Remove unneeded flags for ./configure
Browse files Browse the repository at this point in the history
  • Loading branch information
jurvis committed Apr 9, 2022
1 parent dd7abaa commit 7d6ef31
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions build-libwally.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,7 @@ if [ $simulator == 1 ]; then
export CXXFLAGS="-O3 -arch x86_64 -arch i386 -fembed-bitcode-marker -mios-simulator-version-min=10.0 -isysroot `xcrun -sdk iphonesimulator --show-sdk-path`"
mkdir -p build

architecture=$(uname -m)
arch_target="x86_64-apple-darwin"

if [ "$architecture" = "arm64" ]; then
arch_target="aarch64-apple-darwin"
fi

./configure --disable-shared --host=$arch_target --enable-static --disable-elements
./configure --disable-shared --host=aarch64-apple-darwin --enable-static --disable-elements

if [ $clean == 1 ]; then
set -v # display commands
Expand All @@ -82,7 +75,7 @@ if [ $device == 1 ]; then
export CFLAGS="-O3 -arch arm64 -arch arm64e -arch armv7 -arch armv7s -fembed-bitcode -mios-version-min=10.0 -isysroot `xcrun -sdk iphoneos --show-sdk-path`"
export CXXFLAGS="-O3 -arch arm64 -arch arm64e -arch armv7 -arch armv7s -isysroot -fembed-bitcode -mios-version-min=10.0 -isysroot `xcrun -sdk iphoneos --show-sdk-path`"
mkdir -p build
./configure --disable-shared --host=aarch64-apple-darwin14 --enable-static --disable-elements
./configure --disable-shared --host=aarch64-apple-darwin --enable-static --disable-elements
if [ $clean == 1 ]; then
make clean
fi
Expand Down

0 comments on commit 7d6ef31

Please sign in to comment.