Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
Signed-off-by: leleliu008 <[email protected]>
  • Loading branch information
leleliu008 committed Apr 27, 2024
1 parent 38b563a commit 2b1d490
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions ndk-pkg
Original file line number Diff line number Diff line change
Expand Up @@ -6290,23 +6290,26 @@ EOF
LDFLAGS="$LDFLAGS -Wl,-v"
fi

if [ "$PROFILE" = release ] ; then
PPFLAGS="$PPFLAGS -DNDEBUG"
CCFLAGS="$CCFLAGS -Os"
XXFLAGS="$XXFLAGS -Os"
fi

##############################################

if [ "$ENABLE_LTO" = 1 ] ; then
LDFLAGS="$LDFLAGS -flto"
fi
case $PROFILE in
debug)
CCFLAGS="$CCFLAGS -O0 -g"
XXFLAGS="$XXFLAGS -O0 -g"
;;
release)
PPFLAGS="$PPFLAGS -DNDEBUG"
CCFLAGS="$CCFLAGS -Os"
XXFLAGS="$XXFLAGS -Os"

##############################################
if [ "$ENABLE_LTO" = 1 ] ; then
LDFLAGS="$LDFLAGS -flto"
fi

case $ENABLE_STRIP in
all) LDFLAGS="$LDFLAGS -Wl,-s" ;;
debug) LDFLAGS="$LDFLAGS -Wl,-S" ;;
case $ENABLE_STRIP in
all) LDFLAGS="$LDFLAGS -Wl,-s" ;;
debug) LDFLAGS="$LDFLAGS -Wl,-S" ;;
esac
esac

##############################################
Expand Down Expand Up @@ -9046,7 +9049,7 @@ NDKPKG_PATH="$(cd "$(dirname "$0")" && pwd)/$(basename "$0")"

NDKPKG_ARGS="$*"

NDKPKG_VERSION=0.9.0
NDKPKG_VERSION=0.9.1

NDKPKG_ZSH_COMPLETION_SCRIPT_URL='https://raw.githubusercontent.com/leleliu008/ndk-pkg/master/ndk-pkg-zsh-completion'
NDKPKG_OFFICIAL_FORMULA_REPO_URL='https://github.com/leleliu008/ndk-pkg-formula-repository-official-core.git'
Expand Down

0 comments on commit 2b1d490

Please sign in to comment.