commit d0ef24d
chld
·
2026-08-29 01:06:22 +0000 UTC
parent ba78ee0
openssh: auto build system detection fails, use manual build()
1 files changed,
+24,
-2
+24,
-2
1@@ -4,8 +4,30 @@ VERSION=9.9p2
2 RELEASE=1
3 SOURCE="https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/${NAME}-${VERSION}.tar.gz"
4
5-prebuild(){
6- export LDFLAGS='-L . -static' CPPFLAGS='-L .' CFLAGS='-L . -static'
7+build(){
8+ LDFLAGS='-L . -static' PREFIX="$PREFIX" CPPFLAGS='-L .' CFLAGS='-L . -static -Oz' ./configure \
9+ --prefix="$PREFIX" \
10+ --bindir=/bin \
11+ --sbindir=/bin \
12+ --libdir=/lib \
13+ --includedir=/include \
14+ --sysconfdir=/etc \
15+ --disable-lto \
16+ --disable-largefile \
17+ --without-gnu-ld \
18+ --enable-dependency-tracking \
19+ --enable-static \
20+ --disable-nls \
21+ --with-ldflags='-L .' \
22+ --with-cflags='-static -Oz' \
23+ --without-pam \
24+ --without-selinux \
25+ --without-xauth \
26+ --without-kerberos5 \
27+ --without-bsd-auth || die "configure failed"
28+
29+ LDFLAGS='-L . -static' CPPFLAGS='-L .' CFLAGS='-L . -static -Oz' gmake || die "gmake failed"
30+ LDFLAGS='-L . -static' CPPFLAGS='-L .' CFLAGS='-L . -static -Oz' PREFIX="$PREFIX" DESTDIR="$PKG" gmake install || die "gmake install failed"
31 }
32
33 . ${0%/*}/../../libsh/libdmake.sh