fixed empty string for pkg-config

This commit is contained in:
Noah Swerhun 2022-02-26 19:31:40 -06:00
parent c8abf83960
commit 026156e1f5

View file

@ -28,8 +28,10 @@ OBJ="$(find ${SRCDIR} -name '*\.c' 2> /dev/null |
srcnum="$(find ${SRCDIR} -name '*\.c' -exec printf %c {} + 2> /dev/null | wc -c)" srcnum="$(find ${SRCDIR} -name '*\.c' -exec printf %c {} + 2> /dev/null | wc -c)"
if [ -n "${PKG_CONFIG_LIBS}" ]; then
CFLAGS="${CFLAGS} $(pkg-config --cflags "${PKG_CONFIG_LIBS}")" CFLAGS="${CFLAGS} $(pkg-config --cflags "${PKG_CONFIG_LIBS}")"
LDLIBS="${CFLAGS} $(pkg-config --libs "${PKG_CONFIG_LIBS}")" LDLIBS="${CFLAGS} $(pkg-config --libs "${PKG_CONFIG_LIBS}")"
fi
clear_formatting="\033[0m" clear_formatting="\033[0m"
bold="\033[1m" bold="\033[1m"