From fe4e9470bb504357d073320f5d305b22663ee3fd Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 5 May 2016 15:18:58 +0100 Subject: [PATCH] Add --static to PKG_CONFIG rather than replacing it. --- compat.h | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compat.h b/compat.h index b2267d37..e9d2f159 100644 --- a/compat.h +++ b/compat.h @@ -190,7 +190,7 @@ typedef uint64_t u_int64_t; #ifndef HAVE_CLOSEFROM /* closefrom.c */ -void closefrom(int); +void closefrom(int); #endif #ifndef HAVE_STRCASESTR diff --git a/configure.ac b/configure.ac index d66291f2..3692a521 100644 --- a/configure.ac +++ b/configure.ac @@ -48,7 +48,7 @@ AC_ARG_ENABLE( ) if test "x$found_static" = xyes; then LDFLAGS="$LDFLAGS -static" - PKG_CONFIG="pkg-config --static" + test "x$PKG_CONFIG" != x && PKG_CONFIG="$PKG_CONFIG --static" fi # Is this gcc?