commit bcf3c4e
chld
·
2026-09-10 02:15:58 +0000 UTC
parent 17af8f4
glib: manual build() bc gmake
2 files changed,
+9,
-2
+1,
-0
1@@ -0,0 +1 @@
2+.gmake
+8,
-2
1@@ -2,7 +2,13 @@
2 NAME=glib
3 VERSION=2.55
4 RELEASE=1
5-SOURCE="https://download.gnome.org/sources/${NAME}/${VERSION}/${NAME}-${VERSION}.0.tar.xz"
6-BUILD_OPT="--enable-static --disable-shared --disable-man --without-gnu-ld --disable-gtk-doc --disable-libmount --disable-dtrace --disable-complile-warnings --disable-fam --disable-selinux --disable-largefile --disable-always-build-tests --with-pcre=internal"
7+SOURCE="https://download.gnome.org/sources/${NAME}/${VERSION}/${NAME}-${VERSION}.0.tar.xz"
8+
9+build(){
10+ CFLAGS='-static' LDFLAGS='-static' ./configure --enable-static --disable-shared --disable-man --without-gnu-ld --disable-gtk-doc --disable-libmount --disable-dtrace --disable-complile-warnings --disable-fam --disable-selinux --disable-largefile --disable-always-build-tests --with-pcre=internal
11+ # fat glib
12+ gmake CFLAGS='-static -Oz' LDFLAGS='-static -Wl,-Oz'
13+ gmake CFLAGS='-static -Oz' LDFLAGS='-static -Wl,-Oz' DESTDIR="$PKG" install
14+}
15
16 . ${0%/*}/../../libsh/libdmake.sh