commit 5004040

chld  ·  2026-08-24 13:03:39 +0000 UTC
parent f79372e
guile: static linking
2 files changed,  +6, -1
+0, -0
+6, -1
 1@@ -4,7 +4,10 @@ VERSION=3.0.11
 2 RELEASE=1
 3 SOURCE="https://ftp.gnu.org/pub/gnu/guile/guile-3.0.11.tar.xz"
 4 build(){
 5-        static_cc='cc -static'
 6+	echo 'clang -static $@' > `pwd`/ccs
 7+	chmod 755 `pwd`/ccs
 8+        static_cc=`pwd`/ccs
 9+
10 	CC="$static_cc" CFLAGS='-static' GCC_CFLAGS='-static' LDFLAGS='-static' ./configure \
11 		--prefix=/ \
12 		--bindir=/bin \
13@@ -20,6 +23,8 @@ build(){
14 		--disable-libtool-loc \
15 		--enable-jit=no \
16 		--disable-nls \
17+		--disable-shared \
18+		--enable-static \
19 		--enable-mini-gmp || die "configure failed"
20 
21 	gmake CC="$static_cc" PREFIX="$PREFIX" DESTDIR="$PKG" CFLAGS='-static' GCC_CFLAGS='-static' LDFLAGS='-static' -j"$NPROC" || die "build failed"