fix(glib)

closes #4312
closes #4313
This commit is contained in:
Jacob Heider 2023-12-05 11:48:38 -05:00 committed by Jacob Heider
parent c53de16f38
commit cf92d1c3bc

View file

@ -70,17 +70,19 @@ build:
test: test:
dependencies: dependencies:
freedesktop.org/pkg-config: ^0.29 freedesktop.org/pkg-config: ^0.29
script: | script:
sh - <<EOSTDIN
# unset these since we only want to test via pkg-config # unset these since we only want to test via pkg-config
unset LIBRARY_PATH - unset LIBRARY_PATH
unset CPATH - unset CPATH
unset LD_LIBRARY_PATH - LD_LIBRARY_PATH_BAK=$LD_LIBRARY_PATH
unset DYLD_FALLBACK_LIBRARY_PATH - unset LD_LIBRARY_PATH
cc $CFLAGS $LDFLAGS test.c - DYLD_FALLBACK_LIBRARY_PATH_BAK=$DYLD_FALLBACK_LIBRARY_PATH
EOSTDIN - unset DYLD_FALLBACK_LIBRARY_PATH
- cc $CFLAGS $LDFLAGS test.c
./a.out - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH_BAK
- export DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH_BAK
- ./a.out
env: env:
# using pkg-config as pixman puts its headers in `include/pixman-1` # using pkg-config as pixman puts its headers in `include/pixman-1`
LDFLAGS: $(pkg-config --libs glib-2.0) LDFLAGS: $(pkg-config --libs glib-2.0)