glib: Fix build when not installed prior. Closes #184

This commit is contained in:
Dylan Araps 2020-04-24 12:32:37 +03:00
parent 9ff5f5d50e
commit 520adb3e73
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
2 changed files with 9 additions and 2 deletions

View File

@ -22,7 +22,6 @@ meson \
ninja -C build
ninja -C build install
# json-glib is a separate package which we build alongside
# glib (as if they were one and the same). The upstream for
# json-glib is effectively dead (only translation work) so
@ -30,6 +29,14 @@ ninja -C build install
{
cd json-glib
# This mess of CFLAGS, etc is needed to point json-glib to
# the freshly built glib sources instead of the system's.
export PKG_CONFIG_PATH="$1/usr/lib/pkgconfig:$PKG_CONFIG_PATH"
export PATH="$1/usr/bin:$PATH"
export CFLAGS="$CFLAGS -I$1/usr/include/glib-2.0"
export CFLAGS="$CFLAGS -I$1/usr/lib/glib-2.0/include -pthread"
export LDFLAGS="$LDFLAGS -L$1/usr/lib/"
meson \
--prefix=/usr \
--sysconfdir=/etc \

View File

@ -1 +1 @@
2.64.2 2
2.64.2 3