--- /home/gerald/ports/ports-mgmt/portlint/src/portlint.pl 2017-07-26 06:44:39.947830000 +0000 +++ /home/gerald/bin/portlint 2017-07-29 08:31:37.589579000 +0000 @@ -2175,7 +2175,7 @@ # # whole file: USE_GCC checks # - if ($whole =~ /^USE_GCC[?:]?=\s*(.*)$/m) { + if ($whole =~ /^USE_GCC[?:]?=\s*([^\s#]*).*$/m) { my $lineno = &linenumber($`); my $gcc_val = $1; if ($gcc_val eq 'any' || $gcc_val eq 'yes') {