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:
dependencies:
freedesktop.org/pkg-config: ^0.29
script: |
sh - <<EOSTDIN
script:
# unset these since we only want to test via pkg-config
unset LIBRARY_PATH
unset CPATH
unset LD_LIBRARY_PATH
unset DYLD_FALLBACK_LIBRARY_PATH
cc $CFLAGS $LDFLAGS test.c
EOSTDIN
- unset LIBRARY_PATH
- unset CPATH
- LD_LIBRARY_PATH_BAK=$LD_LIBRARY_PATH
- unset LD_LIBRARY_PATH
- DYLD_FALLBACK_LIBRARY_PATH_BAK=$DYLD_FALLBACK_LIBRARY_PATH
- 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:
# using pkg-config as pixman puts its headers in `include/pixman-1`
LDFLAGS: $(pkg-config --libs glib-2.0)