From 0b88e9c88b1176ecd76704e9be5391502f171c70 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jeremy@system76.com>
Date: Tue, 16 Jul 2019 17:40:21 -0600
Subject: [PATCH] Add glib intergration to harfbuzz

---
 recipes/harfbuzz/recipe.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/recipes/harfbuzz/recipe.sh b/recipes/harfbuzz/recipe.sh
index 0f8a4ba04..0b3980bf6 100644
--- a/recipes/harfbuzz/recipe.sh
+++ b/recipes/harfbuzz/recipe.sh
@@ -1,6 +1,6 @@
 VERSION=2.3.0
 TAR=https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-$VERSION.tar.bz2
-BUILD_DEPENDS=(freetype libpng zlib)
+BUILD_DEPENDS=(freetype gettext glib libiconv libpng pcre zlib)
 
 function recipe_version {
     echo "$VERSION"
@@ -15,7 +15,7 @@ function recipe_update {
 function recipe_build {
     sysroot="$(realpath ../sysroot)"
     export CFLAGS="-I$sysroot/include"
-    export LDFLAGS="-L$sysroot/lib"
+    export LDFLAGS="-L$sysroot/lib --static"
     #wget -O build-aux/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
     FREETYPE_CFLAGS="$("${PKG_CONFIG}" --cflags freetype2)"
     FREETYPE_LIBS="$("${PKG_CONFIG}" --libs freetype2)"
@@ -25,9 +25,10 @@ function recipe_build {
         --prefix=/ \
         --disable-shared \
         --enable-static \
+        --with-glib=yes \
         --with-freetype=yes \
         --with-icu=no
-    make -j"$(nproc)" V=1
+    make -j"$(nproc)"
     skip=1
 }
 
-- 
GitLab