Add support for stage-only flags

This commit is contained in:
BtbN 2021-05-15 14:27:46 +02:00
parent 92da0222d7
commit 186846abf3

View file

@ -1,5 +1,10 @@
#!/bin/bash
set -xe
[[ -n "$STAGE_CFLAGS" ]] && export CFLAGS="$CFLAGS $STAGE_CFLAGS"
[[ -n "$STAGE_CXXFLAGS" ]] && export CXXFLAGS="$CXXFLAGS $STAGE_CXXFLAGS"
[[ -n "$STAGE_LDFLAGS" ]] && export LDFLAGS="$LDFLAGS $STAGE_LDFLAGS"
mkdir -p /stage
source "$1"
cd /stage