Add support for stage-only flags
This commit is contained in:
parent
92da0222d7
commit
186846abf3
1 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -xe
|
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
|
mkdir -p /stage
|
||||||
source "$1"
|
source "$1"
|
||||||
cd /stage
|
cd /stage
|
||||||
|
|
Loading…
Reference in a new issue