forked from cory/tildefriends
build: Use all the tricks to make release smaller on all the platforms.
This commit is contained in:
@ -73,8 +73,10 @@ build_the_thing() {
|
||||
no-whirlpool
|
||||
no-weak-ssl-ciphers
|
||||
no-zlib
|
||||
-Os
|
||||
-Oz
|
||||
-DOPENSSL_SMALL_FOOTPRINT
|
||||
-ffunction-sections
|
||||
-fdata-sections
|
||||
-flto"
|
||||
pwd
|
||||
echo "./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS" && \
|
||||
|
@ -29,14 +29,14 @@ do
|
||||
case $build_target in
|
||||
ios64-xcrun)
|
||||
TRIBLE="arm64-darwin-ios"
|
||||
OPTIONS="--static -static -ffunction-sections -fdata-sections -fPIC -Wno-macro-redefined -miphoneos-version-min=9.0"
|
||||
OPTIONS="--static -static -Oz -ffunction-sections -fdata-sections -fPIC -Wno-macro-redefined -miphoneos-version-min=9.0"
|
||||
DESTDIR="/tmp/$BUILD_DIR/arm64-ios"
|
||||
SSL_TARGET="ios64-xcrun"
|
||||
CC=clang
|
||||
;;
|
||||
iossimulator-xcrun)
|
||||
TRIBLE="x86_64-darwin-ios"
|
||||
OPTIONS="--static -static -ffunction-sections -fdata-sections -fPIC -Wno-macro-redefined"
|
||||
OPTIONS="--static -static -Oz -ffunction-sections -fdata-sections -fPIC -Wno-macro-redefined"
|
||||
DESTDIR="/tmp/$BUILD_DIR/x86_64-iossim"
|
||||
SSL_TARGET="iossimulator-xcrun"
|
||||
CC=clang
|
||||
|
@ -69,8 +69,10 @@ no-uplink
|
||||
no-whirlpool
|
||||
no-weak-ssl-ciphers
|
||||
no-zlib
|
||||
-Os
|
||||
-Oz
|
||||
-DOPENSSL_SMALL_FOOTPRINT
|
||||
-ffunction-sections
|
||||
-fdata-sections
|
||||
-flto"
|
||||
pwd
|
||||
echo "./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS" && \
|
||||
|
@ -56,7 +56,7 @@ build_the_thing() {
|
||||
no-uplink
|
||||
no-weak-ssl-ciphers
|
||||
no-zlib
|
||||
-Os
|
||||
-Oz
|
||||
-ffunction-sections
|
||||
-fdata-sections
|
||||
-flto
|
||||
|
Reference in New Issue
Block a user