fixed empty string for pkg-config
This commit is contained in:
parent
c8abf83960
commit
026156e1f5
1 changed files with 4 additions and 2 deletions
|
@ -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)"
|
||||||
|
|
||||||
CFLAGS="${CFLAGS} $(pkg-config --cflags "${PKG_CONFIG_LIBS}")"
|
if [ -n "${PKG_CONFIG_LIBS}" ]; then
|
||||||
LDLIBS="${CFLAGS} $(pkg-config --libs "${PKG_CONFIG_LIBS}")"
|
CFLAGS="${CFLAGS} $(pkg-config --cflags "${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"
|
||||||
|
|
Loading…
Reference in a new issue