mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-16 13:58:33 +00:00
Use x86_64-linux-musl-gcc instead of musl-gcc
This commit is contained in:
parent
9f0216b59a
commit
3b3b6c4a99
@ -12,9 +12,9 @@ unpack() {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
pushd src/curl-7.32.0
|
pushd src/curl-7.32.0
|
||||||
CC=musl-gcc ./configure --prefix=$top/cross --with-ssl \
|
CC=x86_64-linux-musl-gcc ./configure --prefix=$top/cross --with-ssl \
|
||||||
--with-random=/dev/urandom --disable-shared || return 1
|
--with-random=/dev/urandom --disable-shared || return 1
|
||||||
make CC=musl-gcc -j$nprocs || return 1
|
make -j$nprocs || return 1
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,8 +12,8 @@ unpack() {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
pushd src/libevent-2.0.21-stable
|
pushd src/libevent-2.0.21-stable
|
||||||
CC=musl-gcc ./configure --prefix=$top/cross --disable-shared || return 1
|
CC=x86_64-linux-musl-gcc ./configure --prefix=$top/cross --disable-shared || return 1
|
||||||
make CC=musl-gcc -j$nprocs || return 1
|
make -j$nprocs || return 1
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,8 +12,8 @@ unpack() {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
pushd src/libsigc++-2.3.1
|
pushd src/libsigc++-2.3.1
|
||||||
CC=musl-gcc ./configure --prefix=$top/cross --disable-shared --enable-static || return 1
|
CC=x86_64-linux-musl-gcc ./configure --prefix=$top/cross --disable-shared --enable-static || return 1
|
||||||
make CC=musl-gcc -j$nprocs || return 1
|
make -j$nprocs || return 1
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,8 +12,8 @@ unpack() {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
pushd src/libtorrent-0.13.3
|
pushd src/libtorrent-0.13.3
|
||||||
CC=musl-gcc ./configure --prefix=$top/cross --disable-shared || return 1
|
CC=x86_64-linux-musl-gcc ./configure --prefix=$top/cross --disable-shared || return 1
|
||||||
make CC=musl-gcc -j$nprocs || return 1
|
make CC=x86_64-linux-musl-gcc -j$nprocs || return 1
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,11 +13,11 @@ unpack() {
|
|||||||
build() {
|
build() {
|
||||||
pushd src/ncurses-5.9
|
pushd src/ncurses-5.9
|
||||||
cp $top/stuff/ncurses-fallback.c ncurses/fallback.c
|
cp $top/stuff/ncurses-fallback.c ncurses/fallback.c
|
||||||
CC=musl-gcc ./configure --prefix=$top/cross --without-tests \
|
CC=x86_64-linux-musl-gcc ./configure --prefix=$top/cross --without-tests \
|
||||||
--with-normal --enable-sigwinch --disable-nls --without-dlsym \
|
--with-normal --enable-sigwinch --disable-nls --without-dlsym \
|
||||||
--without-cxx-binding \
|
--without-cxx-binding \
|
||||||
--with-fallbacks="linux vt100 xterm xterm256-color" </dev/ptmx || return 1
|
--with-fallbacks="linux vt100 xterm xterm256-color" </dev/ptmx || return 1
|
||||||
make CC=musl-gcc -j$nprocs || return 1
|
make -j$nprocs || return 1
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,8 +12,8 @@ unpack() {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
pushd src/zlib-1.2.8
|
pushd src/zlib-1.2.8
|
||||||
CC=musl-gcc ./configure --prefix=$top/cross --static || return 1
|
CC=x86_64-linux-musl-gcc ./configure --prefix=$top/cross --static || return 1
|
||||||
make CC=musl-gcc -j$nprocs || return 1
|
make -j$nprocs || return 1
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,19 +12,19 @@ unpack() {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
pushd src/dropbear-2013.56
|
pushd src/dropbear-2013.56
|
||||||
CC=musl-gcc ./configure CFLAGS="-I$top/cross/include" \
|
CC=x86_64-linux-musl-gcc ./configure CFLAGS="-I$top/cross/include" \
|
||||||
LDFLAGS="-static -L$top/cross/lib" --prefix=$root || return 1
|
LDFLAGS="-static -L$top/cross/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
|
||||||
make CC=musl-gcc SCPPROGRESS=1 PROGRAMS="dropbear dbclient scp dropbearkey" \
|
make CC=x86_64-linux-musl-gcc SCPPROGRESS=1 PROGRAMS="dropbear dbclient scp dropbearkey" \
|
||||||
prefix=$root sbindir=$root/bin -j$nprocs STATIC=1 || return 1
|
prefix=$root sbindir=$root/bin -j$nprocs STATIC=1 || return 1
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
pushd src/dropbear-2013.56
|
pushd src/dropbear-2013.56
|
||||||
make CC=musl-gcc SCPPROGRESS=1 PROGRAMS="dropbear dbclient scp dropbearkey" prefix=$root \
|
make CC=x86_64-linux-musl-gcc SCPPROGRESS=1 PROGRAMS="dropbear dbclient scp dropbearkey" prefix=$root \
|
||||||
sbindir=$root/bin -j$nprocs install STATIC=1 || return 1
|
sbindir=$root/bin -j$nprocs install STATIC=1 || return 1
|
||||||
pushd $root/bin
|
pushd $root/bin
|
||||||
ln -s dbclient ssh
|
ln -s dbclient ssh
|
||||||
|
2
pkgs/em
2
pkgs/em
@ -14,7 +14,7 @@ build() {
|
|||||||
pushd src/em
|
pushd src/em
|
||||||
make clean
|
make clean
|
||||||
sed -i "s@BINDIR=/usr/bin@BINDIR=${root}/bin@;s@LIBDIR=/usr/lib@LIBDIR=${root}/share/doc/uemacs@" Makefile || return 1
|
sed -i "s@BINDIR=/usr/bin@BINDIR=${root}/bin@;s@LIBDIR=/usr/lib@LIBDIR=${root}/share/doc/uemacs@" Makefile || return 1
|
||||||
make -j$nprocs CC="musl-gcc -I$top/cross/include -I$top/cross/include/ncurses" \
|
make -j$nprocs CC="x86_64-linux-musl-gcc -I$top/cross/include -I$top/cross/include/ncurses" \
|
||||||
LDFLAGS="-static -L$top/cross/lib" || return 1
|
LDFLAGS="-static -L$top/cross/lib" || return 1
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ unpack() {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
pushd src/gawk-4.1.0
|
pushd src/gawk-4.1.0
|
||||||
CC="musl-gcc -static" ./configure --prefix=$root --disable-nls \
|
CC="x86_64-linux-musl-gcc -static" ./configure --prefix=$root --disable-nls \
|
||||||
--libdir=$root/devel/x86_64-linux-musl/lib \
|
--libdir=$root/devel/x86_64-linux-musl/lib \
|
||||||
--libexecdir=$root/devel/x86_64-linux-musl/libexec || return 1
|
--libexecdir=$root/devel/x86_64-linux-musl/libexec || return 1
|
||||||
make -j$nprocs || return 1
|
make -j$nprocs || return 1
|
||||||
|
@ -12,8 +12,8 @@ unpack() {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
pushd src/make-3.82
|
pushd src/make-3.82
|
||||||
CC="musl-gcc -static" ./configure --prefix=$root --disable-nls || return 1
|
CC="x86_64-linux-musl-gcc -static" ./configure --prefix=$root --disable-nls || return 1
|
||||||
make CC="musl-gcc -static" -j$nprocs || return 1
|
make -j$nprocs || return 1
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
pkgs/man
2
pkgs/man
@ -12,7 +12,7 @@ unpack() {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
pushd src/man
|
pushd src/man
|
||||||
musl-gcc -std=gnu99 -o man man.c -static || return 1
|
x86_64-linux-musl-gcc -std=gnu99 -o man man.c -static || return 1
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ unpack() {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
pushd src/mksh
|
pushd src/mksh
|
||||||
CC=musl-gcc LDFLAGS+=-static sh Build.sh || return 1
|
CC=x86_64-linux-musl-gcc LDFLAGS+=-static sh Build.sh || return 1
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,8 +12,8 @@ unpack() {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
pushd src/rsync-3.0.9
|
pushd src/rsync-3.0.9
|
||||||
CC=musl-gcc ./configure --prefix=$root LDFLAGS="-static" || return 1
|
CC=x86_64-linux-musl-gcc ./configure --prefix=$root LDFLAGS="-static" || return 1
|
||||||
make CC=musl-gcc -j$nprocs || return 1
|
make -j$nprocs || return 1
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ fetch() {
|
|||||||
build() {
|
build() {
|
||||||
pushd src/sbase
|
pushd src/sbase
|
||||||
make clean
|
make clean
|
||||||
make -j$nprocs CC=musl-gcc LDFLAGS=-static || return 1
|
make -j$nprocs CC=x86_64-linux-musl-gcc LDFLAGS=-static || return 1
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ unpack() {
|
|||||||
build() {
|
build() {
|
||||||
pushd src/sdhcp
|
pushd src/sdhcp
|
||||||
make clean
|
make clean
|
||||||
make CC=musl-gcc LDFLAGS=-static || return 1
|
make CC=x86_64-linux-musl-gcc LDFLAGS=-static || return 1
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
pkgs/sed
2
pkgs/sed
@ -12,7 +12,7 @@ unpack() {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
pushd src/sed-4.2
|
pushd src/sed-4.2
|
||||||
CC="musl-gcc -static" ./configure --prefix=$root --disable-nls \
|
CC="x86_64-linux-musl-gcc -static" ./configure --prefix=$root --disable-nls \
|
||||||
--libdir=$root/devel/x86_64-linux-musl/lib \
|
--libdir=$root/devel/x86_64-linux-musl/lib \
|
||||||
--libexecdir=$root/devel/x86_64-linux-musl/libexec || return 1
|
--libexecdir=$root/devel/x86_64-linux-musl/libexec || return 1
|
||||||
make -j$nprocs || return 1
|
make -j$nprocs || return 1
|
||||||
|
2
pkgs/sic
2
pkgs/sic
@ -13,7 +13,7 @@ unpack() {
|
|||||||
build() {
|
build() {
|
||||||
pushd src/sic
|
pushd src/sic
|
||||||
make clean
|
make clean
|
||||||
make CC=musl-gcc LDFLAGS=-static || return 1
|
make CC=x86_64-linux-musl-gcc LDFLAGS=-static || return 1
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ fetch() {
|
|||||||
build() {
|
build() {
|
||||||
pushd src/smdev
|
pushd src/smdev
|
||||||
make clean
|
make clean
|
||||||
make CC=musl-gcc LDFLAGS=-static || return 1
|
make CC=x86_64-linux-musl-gcc LDFLAGS=-static || return 1
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,10 +12,10 @@ unpack() {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
pushd src/tmux-1.8
|
pushd src/tmux-1.8
|
||||||
CC=musl-gcc ./configure --prefix=$root \
|
CC=x86_64-linux-musl-gcc ./configure --prefix=$root \
|
||||||
CFLAGS="-I$top/cross/include -I$top/cross/include/ncurses" \
|
CFLAGS="-I$top/cross/include -I$top/cross/include/ncurses" \
|
||||||
LDFLAGS="-static -L$top/cross/lib" || return 1
|
LDFLAGS="-static -L$top/cross/lib" || return 1
|
||||||
make CC=musl-gcc -j$nprocs || return 1
|
make -j$nprocs || return 1
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ fetch() {
|
|||||||
build() {
|
build() {
|
||||||
pushd src/ubase
|
pushd src/ubase
|
||||||
make clean
|
make clean
|
||||||
make -j$nprocs CC=musl-gcc LDFLAGS=-static || return 1
|
make -j$nprocs CC=x86_64-linux-musl-gcc LDFLAGS=-static || return 1
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ unpack() {
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
pushd src/wget-1.14
|
pushd src/wget-1.14
|
||||||
CC="musl-gcc -static" ./configure --prefix=$root --without-ssl \
|
CC="x86_64-linux-musl-gcc -static" ./configure --prefix=$root --without-ssl \
|
||||||
--libdir=$root/devel/x86_64-linux-musl/lib \
|
--libdir=$root/devel/x86_64-linux-musl/lib \
|
||||||
--libexecdir=$root/devel/x86_64-linux-musl/libexec || return 1
|
--libexecdir=$root/devel/x86_64-linux-musl/libexec || return 1
|
||||||
make -j$nprocs || return 1
|
make -j$nprocs || return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user