commit d85d481

chld  ·  2026-09-06 17:36:34 +0000 UTC
parent dd6e025
twin: static server, no dlopen
1 files changed,  +12, -3
+12, -3
 1@@ -7,11 +7,20 @@ SOURCE="https://github.com/cosmos72/${NAME}"
 2 build(){
 3     
 4     CFLAGS='-static -O3 -pipe' LDFLAGS='-static' ./configure \
 5-	--enable-static \
 6-	--disable-shared || die 'configure failed'
 7-
 8+	  --libdir=/lib \
 9+	  --bindir=/bin \
10+	  --sbindir=/sbin \
11+	  --sysconfdir=/etc \
12+	  --enable-static \
13+	  --enable-server-static=yes \
14+	  --disable-hw-x11 \
15+	  --disable-hw-xft \
16+	  --disable-shared \
17+	  --disable-dlopen || die 'configure failed'
18+    
19     sed -i 's/gcc/gcc -static/g' `find . -name Makefile -type f`
20     sed -i 's/g++/g++ -static/g' `find . -name Makefile -type f`
21+    
22     gmake LDFLAGS='-static -all-static' CFLAGS='-static -O3 -pipe' || die 'gmake failed'
23     gmake LDFLAGS='-static' CFLAGS='-static -O3 -pipe' DESTDIR="$PKG" install || die 'install failed'
24 }