mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-16 08:58:34 +00:00
Set correct libcroot
This commit is contained in:
parent
821298947e
commit
9e0fc902ab
@ -12,8 +12,7 @@ unpack() {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
pushd src/dropbear-2013.56
|
pushd src/dropbear-2013.56
|
||||||
CC=x86_64-linux-musl-gcc ./configure CFLAGS="-I$libcroot/include" \
|
CC=x86_64-linux-musl-gcc ./configure LDFLAGS=-static --prefix=$root || return 1
|
||||||
LDFLAGS="-static -L$libcroot/lib" --prefix=$root || return 1
|
|
||||||
for i in UTMP WTMP PUTUTLINE PUTUTXLINE SYSLOG LASTLOG; do
|
for i in UTMP WTMP PUTUTLINE PUTUTXLINE SYSLOG LASTLOG; do
|
||||||
echo "#define DISABLE_$i" >> config.h
|
echo "#define DISABLE_$i" >> config.h
|
||||||
done
|
done
|
||||||
|
@ -12,9 +12,7 @@ unpack() {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
pushd src/tmux-1.8
|
pushd src/tmux-1.8
|
||||||
CC=x86_64-linux-musl-gcc ./configure --prefix=$root \
|
CC=x86_64-linux-musl-gcc ./configure --prefix=$root LDFLAGS=-static || return 1
|
||||||
CFLAGS="-I$libcroot/include -I$libcroot/include/ncurses" \
|
|
||||||
LDFLAGS="-static -L$libcroot/lib" || return 1
|
|
||||||
make -j$nprocs || return 1
|
make -j$nprocs || return 1
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
top=$(pwd)
|
top=$(pwd)
|
||||||
root=$top/root
|
root=$top/root
|
||||||
libcroot=$top/cross/x86_64-linux-musl
|
libcroot=$top/cross/x86_64-linux-musl/x86_64-linux-musl
|
||||||
nprocs=4
|
nprocs=4
|
||||||
arch=x86_64
|
arch=x86_64
|
||||||
version=0.0
|
version=0.0
|
||||||
mirror=http://dl.2f30.org/morpheus-pkgs/$arch/$version
|
mirror=http://dl.2f30.org/morpheus-pkgs/$arch/$version
|
||||||
export top root libcroot nprocs mirror
|
export top root libcroot nprocs mirror
|
||||||
|
|
||||||
PATH=$libcroot/bin:$PATH
|
PATH=$top/cross/x86_64-linux-musl/bin:$PATH
|
||||||
export PATH
|
export PATH
|
||||||
|
Loading…
Reference in New Issue
Block a user