From 0868b2d47f594aefda5a4e3deb1c713dffca9c8d Mon Sep 17 00:00:00 2001 From: Riccardo Schirone Date: Wed, 21 Nov 2018 01:55:23 +0100 Subject: [PATCH] Use -static in CFLAGS too (#12246) --- sys/static.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/static.sh b/sys/static.sh index 25bb758c5a504..fc7286286a4ec 100755 --- a/sys/static.sh +++ b/sys/static.sh @@ -48,7 +48,7 @@ for a in ${BINS} ; do if [ "`uname`" = Darwin ]; then ${MAKE} -j4 || exit 1 else - LDFLAGS=-static ${MAKE} -j4 || exit 1 + CFLAGS=-static LDFLAGS=-static ${MAKE} -j4 || exit 1 fi ) done