Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
leleliu008 committed Sep 7, 2024
1 parent aadef65 commit 595b3fc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions ppkg
Original file line number Diff line number Diff line change
Expand Up @@ -3127,6 +3127,25 @@ EOF
run bsdtar tf "$TEPPUT_FILEPATH"
}

# }}}
##############################################################################
# {{{ add_ldflags

add_ldflags() {
for FLAG in "$@"
do
case $FLAG in
-l*)
PROXIED_CC_ARGS="$PROXIED_CC_ARGS $FLAG"
PROXIED_CXX_ARGS="$PROXIED_CXX_ARGS $FLAG"
;;
*) LDFLAG="$LDFLAG $FLAG"
esac
shift
done
}


# }}}
##############################################################################
# {{{ waf
Expand Down Expand Up @@ -9162,6 +9181,7 @@ export UPPM_HOME="$PPKG_HOME/uppm"

if [ -n "$PPKG_URL_TRANSFORM" ] ; then
export UPPM_URL_TRANSFORM="$PPKG_URL_TRANSFORM"
export URL_TRANSFORM="$PPKG_URL_TRANSFORM"
fi

uppm() {
Expand Down
2 changes: 1 addition & 1 deletion xbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ ${COLOR_GREEN}xbuilder ls-available [-v]${COLOR_OFF}
${COLOR_GREEN}xbuilder install <PACKAGE-NAME>... [OPTIONS]${COLOR_OFF}
install the specified packages.
Influential environment variables: CC, CXX, CFLAGS, CXXFLAGS, CPPFLAGS, LDFLAGS, AS, LD, AR, RANLIB
Influential environment variables: CC, CXX, CFLAGS, CXXFLAGS, CPPFLAGS, LDFLAGS, AS, LD, AR, RANLIB, GMAKE, CMAKE, URL_TRANSFORM
OPTIONS:
${COLOR_BLUE}--prefix=<DIR>${COLOR_OFF}
Expand Down

0 comments on commit 595b3fc

Please sign in to comment.