commit 7d2310d

chld  ·  2026-09-10 02:30:04 +0000 UTC
parent 41834c8
glib: meson options
1 files changed,  +3, -5
+3, -5
 1@@ -3,12 +3,10 @@ NAME=glib
 2 VERSION=2.58
 3 RELEASE=1
 4 SOURCE="https://download.gnome.org/sources/${NAME}/${VERSION}/${NAME}-${VERSION}.0.tar.xz"
 5+BUILD_OPT="-Ddefault_library=static -Dselinux=false -Dxattr=false -Dlibmount=false -Dinternal_pcre=true -Dman=false -Ddtrace=false -Dsystemtap=false -Dgtk_doc=false -Dfam=false -Dinstalled_tests=false -Dbsymbolic_functions=false"
 6 
 7-build(){
 8-    CFLAGS='-static -Wno-error=int-conversion' 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
 9-    # fat glib
10-    gmake CFLAGS='-static -Oz -Wno-error=int-conversion' LDFLAGS='-static -all-static -Wl,-O2 -Wl,-s -Wl,--as-needed' V=1
11-    gmake CFLAGS='-static -Oz' LDFLAGS='-static -Wl,-Oz' DESTDIR="$PKG" install
12+prebuild(){
13+    export CFLAGS='-static -Oz -Wno-error=int-conversion' LDFLAGS='-static -Wl,-s -Wl,-O2 -Wl,--as-needed'
14 }
15 
16 . ${0%/*}/../../libsh/libdmake.sh