pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files - Allow the values -c99 for CFL...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d7c8d9cf4411
branches:  trunk
changeset: 508186:d7c8d9cf4411
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Feb 16 06:33:41 2006 +0000

description:
- Allow the values -c99 for CFLAGS and -static for LDFLAGS.

diffstat:

 pkgtools/pkglint/files/pkglint.pl |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r f990961bca8b -r d7c8d9cf4411 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Thu Feb 16 06:33:00 2006 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Thu Feb 16 06:33:41 2006 +0000
@@ -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 @@
 
                        $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 @@
 
                        $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}\".");
 



Home | Main Index | Thread Index | Old Index