commit dd6e025

chld  ·  2026-09-06 17:18:10 +0000 UTC
parent 309ec72
twin: static linking
1 files changed,  +4, -2
+4, -2
 1@@ -10,8 +10,10 @@ build(){
 2 	--enable-static \
 3 	--disable-shared || die 'configure failed'
 4 
 5-    gmake LDFLAgS='-static -all-static' CFLAGS='-static -O3 -pipe' || die 'gmake failed'
 6-    gmake LDFLAgS='-static' CFLAGS='-static -O3 -pipe' DESTDIR="$PKG" install || die 'install failed'
 7+    sed -i 's/gcc/gcc -static/g' `find . -name Makefile -type f`
 8+    sed -i 's/g++/g++ -static/g' `find . -name Makefile -type f`
 9+    gmake LDFLAGS='-static -all-static' CFLAGS='-static -O3 -pipe' || die 'gmake failed'
10+    gmake LDFLAGS='-static' CFLAGS='-static -O3 -pipe' DESTDIR="$PKG" install || die 'install failed'
11 }
12 
13 . ${0%/*}/../../libsh/libdmake.sh