From 67c7ced78b478a77598120985369e4eac02f0839 Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 9 Apr 2007 16:37:29 +0000 Subject: [PATCH] Fix debug flags git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5871 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-common/shorewall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall-common/shorewall b/Shorewall-common/shorewall index f0cd1cbfd..49dcbd87a 100755 --- a/Shorewall-common/shorewall +++ b/Shorewall-common/shorewall @@ -284,7 +284,7 @@ compiler() { perl) [ -x $pc ] || startup_error "SHOREWALL_COMPILER=perl requires the shorewall-perl package which is not installed" debugflags="-w" - [ "$1" = debug ] && debugflags='-wd' && shift + [ -n "$DEBUG" ] && debugflags='-wd' && shift [ -n "$PROFILE" ] && debugflags='-wd:DProf' shift # Perl compiler only takes the output file as a argument