commit a2530b3
chld
·
2026-08-29 04:08:09 +0000 UTC
parent 77696d7
dash: switch to manual build()
1 files changed,
+23,
-2
+23,
-2
1@@ -3,8 +3,29 @@ NAME=dash
2 VERSION=0.5.13
3 RELEASE=1
4 SOURCE="http://gondor.apana.org.au/~herbert/${NAME}/files/${NAME}-${VERSION}.tar.gz"
5-prebuild(){
6- export CFLAGS="$CFLAGS -Oz -static"
7+
8+build(){
9+ CFLAGS="$CFLAGS -Oz -static" LDFLAGS='-L . -static' PREFIX="$PREFIX" CPPFLAGS='-L .' ./configure \
10+ --prefix="$PREFIX" \
11+ --bindir=/bin \
12+ --sbindir=/bin \
13+ --libdir=/lib \
14+ --includedir=/include \
15+ --sysconfdir=/etc \
16+ --disable-lto \
17+ --disable-largefile \
18+ --without-gnu-ld \
19+ --enable-dependency-tracking \
20+ --enable-static \
21+ --disable-nls \
22+ --with-ldflags='-L .' \
23+ --with-cflags='-static -Oz' \
24+ --without-pam \
25+ --without-selinux \
26+ || die "configure failed"
27+
28+ LDFLAGS='-L . -static' CPPFLAGS='-L .' CFLAGS='-L . -static -Oz' gmake || die "gmake failed"
29+ LDFLAGS='-L . -static' CPPFLAGS='-L .' CFLAGS='-L . -static -Oz' PREFIX="$PREFIX" DESTDIR="$PKG" gmake install || die "gmake install failed"
30 }
31
32 . ${0%/*}/../../libsh/libdmake.sh