Need to use pkg-config --static when doing a static build.

This commit is contained in:
Nicholas Marriott 2015-12-12 22:04:25 +00:00
parent 845a664bb2
commit 92f187d1c2

View File

@ -18,6 +18,7 @@ AM_PROG_CC_C_O
AC_PROG_CPP
AC_PROG_EGREP
AC_PROG_INSTALL
PKG_PROG_PKG_CONFIG
# Default tmux.conf goes in /etc not ${prefix}/etc.
test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc
@ -47,6 +48,7 @@ AC_ARG_ENABLE(
)
if test "x$found_static" = xyes; then
LDFLAGS="$LDFLAGS -static"
PKG_CONFIG="pkg-config --static"
fi
# Is this gcc?