mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-22 06:11:31 +03:00
18 lines
378 B
Bash
18 lines
378 B
Bash
|
source $setup
|
||
|
|
||
|
mkdir -p $out/bin
|
||
|
|
||
|
cat > $out/bin/pkg-config-cross <<EOF
|
||
|
PKG_CONFIG_LIBDIR=\$PKG_CONFIG_CROSS_PATH \\
|
||
|
PKG_CONFIG_PATH=\$PKG_CONFIG_CROSS_PATH \\
|
||
|
exec pkg-config \$@
|
||
|
EOF
|
||
|
|
||
|
cat > $out/bin/cmake-cross <<EOF
|
||
|
PKG_CONFIG=pkg-config-cross \\
|
||
|
CMAKE_PREFIX_PATH=\$CMAKE_CROSS_PREFIX_PATH \\
|
||
|
exec cmake -DCMAKE_TOOLCHAIN_FILE=\$cmake_toolchain \$@
|
||
|
EOF
|
||
|
|
||
|
chmod a+x $out/bin/*
|