Set correct libcroot

This commit is contained in:
sin 2013-09-25 14:33:33 +01:00
parent 821298947e
commit 9e0fc902ab
3 changed files with 4 additions and 7 deletions

View File

@ -12,8 +12,7 @@ unpack() {
build() {
pushd src/dropbear-2013.56
CC=x86_64-linux-musl-gcc ./configure CFLAGS="-I$libcroot/include" \
LDFLAGS="-static -L$libcroot/lib" --prefix=$root || return 1
CC=x86_64-linux-musl-gcc ./configure LDFLAGS=-static --prefix=$root || return 1
for i in UTMP WTMP PUTUTLINE PUTUTXLINE SYSLOG LASTLOG; do
echo "#define DISABLE_$i" >> config.h
done

View File

@ -12,9 +12,7 @@ unpack() {
build() {
pushd src/tmux-1.8
CC=x86_64-linux-musl-gcc ./configure --prefix=$root \
CFLAGS="-I$libcroot/include -I$libcroot/include/ncurses" \
LDFLAGS="-static -L$libcroot/lib" || return 1
CC=x86_64-linux-musl-gcc ./configure --prefix=$root LDFLAGS=-static || return 1
make -j$nprocs || return 1
popd
}

View File

@ -1,11 +1,11 @@
top=$(pwd)
root=$top/root
libcroot=$top/cross/x86_64-linux-musl
libcroot=$top/cross/x86_64-linux-musl/x86_64-linux-musl
nprocs=4
arch=x86_64
version=0.0
mirror=http://dl.2f30.org/morpheus-pkgs/$arch/$version
export top root libcroot nprocs mirror
PATH=$libcroot/bin:$PATH
PATH=$top/cross/x86_64-linux-musl/bin:$PATH
export PATH