From b2f6c04a498e1ad875a35664c46bf33680171164 Mon Sep 17 00:00:00 2001 From: Lee Date: Sat, 24 Sep 2016 16:16:55 +0000 Subject: [PATCH] add --enable-static-linking option for configure does the same thing as LDFLAGS=-static; ./configure but nicer than mixing evars and configure options --- configure.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 595ac7e6..374741a6 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. dnl -dnl $Id: configure.in,v 1.203 2016/08/26 12:26:43 fabiankeil Exp $ +dnl $Id: configure.in,v 1.204 2016/09/19 14:16:05 fabiankeil Exp $ dnl dnl Written by and Copyright (C) 2001-2016 the dnl Privoxy team. https://www.privoxy.org/ @@ -32,7 +32,7 @@ dnl ================================================================= dnl AutoConf Initialization dnl ================================================================= -AC_REVISION($Revision: 1.203 $) +AC_REVISION($Revision: 1.204 $) AC_INIT(jcc.c) if test ! -f config.h.in; then @@ -409,6 +409,10 @@ AC_ARG_ENABLE(large-file-support, CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1" fi]) +AC_ARG_ENABLE(static-linking, +[ --enable-static-linking Use static linking instead of dynamic linking (ie. LDFLAGS=-static)], +[ if test $enableval = yes; then LDFLAGS="$LDFLAGS -static"; fi ]) + dnl Save old CFLAGS so we can restore them later, then add SPECIAL_CFLAGS old_CFLAGS_nospecial=$CFLAGS CFLAGS="$CFLAGS $SPECIAL_CFLAGS" -- 2.39.2