mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-04-21 21:52:04 +02:00
set cwd properly when running vars.sh
This commit is contained in:
parent
362b6c17c3
commit
a05f8a6d10
1 changed files with 5 additions and 3 deletions
|
@ -1,8 +1,10 @@
|
|||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
|
||||
MKXPZ_HOST=$(gcc -dumpmachine)
|
||||
MKXPZ_PREFIX=$(ruby -e "printf ('${MKXPZ_HOST}'[/i686/].nil?) ? 'mingw64' : 'mingw'")
|
||||
export LDFLAGS="-L$PWD/build-${MKXPZ_PREFIX}/lib -L$PWD/build-${MKXPZ_PREFIX}/bin"
|
||||
export PATH="$PWD/build-${MKXPZ_PREFIX}/bin:$PATH"
|
||||
export LDFLAGS="-L$DIR/build-${MKXPZ_PREFIX}/lib -L$DIR/build-${MKXPZ_PREFIX}/bin"
|
||||
export PATH="$DIR/build-${MKXPZ_PREFIX}/bin:$PATH"
|
||||
MKXPZ_OLD_PC=$(pkg-config --variable pc_path pkg-config)
|
||||
|
||||
# Try to load the stuff we built first
|
||||
export PKG_CONFIG_PATH="$PWD/build-${MKXPZ_PREFIX}/lib/pkgconfig"
|
||||
export PKG_CONFIG_PATH="$DIR/build-${MKXPZ_PREFIX}/lib/pkgconfig"
|
Loading…
Add table
Reference in a new issue