9 lines
412 B
Bash
Executable File
9 lines
412 B
Bash
Executable File
#!/bin/sh
|
|
MYPATH="`dirname \"$0\"`"
|
|
SYSROOT="`realpath \"$MYPATH/../../sysroot\"`"
|
|
if [ -f "$SYSROOT/bin/musl-gcc" ]; then export CC="$SYSROOT/bin/musl-gcc"; fi
|
|
if [ -f "$SYSROOT/bin/musl-clang" ]; then export CC="$SYSROOT/bin/musl-clang"; fi
|
|
export CFLAGS="-O3 -mcmodel=large -mstack-protector-guard=global -fno-pic -fno-pie -fcf-protection=none"
|
|
export LDFLAGS="-no-pie"
|
|
./configure --static --prefix=$SYSROOT
|