xbps-src: make build options from config ang flags work together
Flag options was appended to XBPS_PKG_OPTIONS, but was later overwritten by sourcing config. Instead, pass only flags options in separate variable and join at very end.
This commit is contained in:
@@ -167,6 +167,16 @@ set_build_options() {
|
||||
if [ -z "$pkgopts" -o "$pkgopts" = "" ]; then
|
||||
pkgopts=${XBPS_PKG_OPTIONS}
|
||||
fi
|
||||
|
||||
# If pkg options were set in config(s), merge them with command line
|
||||
if [ -n "$XBPS_ARG_PKG_OPTIONS" ]; then
|
||||
if [ -n "$pkgopts" ]; then
|
||||
pkgopts+=",$XBPS_ARG_PKG_OPTIONS"
|
||||
else
|
||||
pkgopts="$XBPS_ARG_PKG_OPTIONS"
|
||||
fi
|
||||
fi
|
||||
|
||||
OIFS="$IFS"; IFS=','
|
||||
for j in ${pkgopts}; do
|
||||
case "$j" in
|
||||
|
Reference in New Issue
Block a user