summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-02-16 06:33:41 +0000
committerrillig <rillig@pkgsrc.org>2006-02-16 06:33:41 +0000
commit93d75818c32b4d0894d766777f92d523d2386aac (patch)
tree8205c57917eedc438c1d40555212fa631948aa5b
parentb54e4c2a758412f58649e1b330bc446ac5d26055 (diff)
downloadpkgsrc-93d75818c32b4d0894d766777f92d523d2386aac.tar.gz
- Allow the values -c99 for CFLAGS and -static for LDFLAGS.
-rw-r--r--pkgtools/pkglint/files/pkglint.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 8a8b769d607..e7ca9783503 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.519 2006/02/15 17:00:02 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.520 2006/02/16 06:33:41 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -2772,6 +2772,10 @@ sub checkline_mk_vartype_basic($$$$$$) {
$opt_debug and $line->log_warning("Unknown directory ${dirname} in ${varname}.");
+ } elsif ($value eq "-c99") {
+ # Only works on IRIX, but is usually enclosed with
+ # the proper preprocessor conditional.
+
} elsif ($value =~ qr"^-[OWfgm]") {
$opt_debug and $line->log_warning("Undiscussed compiler flag ${value} in ${varname}.");
@@ -2879,6 +2883,9 @@ sub checkline_mk_vartype_basic($$$$$$) {
$opt_debug and $line->log_warning("Unchecked library name ${libname} in ${varname}.");
+ } elsif ($value =~ qr"^(?:-static)$") {
+ # Assume that the wrapper framework catches these.
+
} elsif ($value =~ qr"^-.*") {
$line->log_warning("Unknown linker flag \"${value}\".");