]> ruderich.org/simon Gitweb - blhc/blhc.git/commitdiff
Fix false positive in configure output if $CC contains options.
authorSimon Ruderich <simon@ruderich.org>
Tue, 28 May 2013 21:12:11 +0000 (23:12 +0200)
committerSimon Ruderich <simon@ruderich.org>
Tue, 28 May 2013 21:12:11 +0000 (23:12 +0200)
Debian bug #710135.

NEWS
bin/blhc
t/logs/configure

diff --git a/NEWS b/NEWS
index ce29d0cf31b8f3a8bb7b3c97bf1835a589cf8afc..4ac2e4cf9075b6f495146497b40a716a1cc7fdac 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,13 @@
 NEWS
 ====
 
+Version 0.XX
+------------
+
+- Fix false positive in configure output if $CC contains options (Debian bug
+  #710135).
+
+
 Version 0.04
 ------------
 
index 783ae73f27b66eb68df2fbc3c8e9c1635ebbfd2d..d5af8a01983d8f24241b44b596075b6646dea055 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -852,7 +852,11 @@ foreach my $file (@ARGV) {
             next if $line =~ /^\s*(?:Host\s+)?(?:C(?:\+\+)?\s+)?
                                 [Cc]ompiler[\s.]*:?\s+
                                 /x;
-            next if $line =~ /^\s*(?:- )?(?:HOST_)?(?:CC|CXX)\s*=\s*$cc_regex_full\s*$/o;
+            next if $line =~ m{^\s*(?:-\s)?(?:HOST_)?(?:CC|CXX)
+                                \s*=\s*$cc_regex_full
+                                # optional compiler options, don't allow
+                                # "everything" here to prevent false negatives
+                                \s*(?:\s-\S+)*\s*$}xo;
             # `moc-qt4`/`moc-qt5` contain '-I.../linux-g++' in their command
             # line (or similar for other architectures) which gets recognized
             # as a compiler line, but `moc-qt*` is only a preprocessor for Qt
index 5f45d196d2c5777c588439ffb3281034558f7569..ba8adbdcd091a0d89bf21b6b3a485ca29af0dde9 100644 (file)
@@ -121,3 +121,20 @@ Configuration complete:
 LibCapability (enhanced
    privilege dropping): yes
          Linux Netlink: yes (mac80211 VAP creation) - libnl-3.0 libnl-genl-3.0
+
+# Debian #710135.
+  PREFIX          = /usr
+  EXEC-PREFIX     = /usr
+  VERSION         = 6.8.5
+  CC              = gcc -std=gnu99 -std=gnu99
+  CFLAGS          = -I/usr/include/lqr-1 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -fopenmp -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
+  CPPFLAGS        = -I/usr/include/ImageMagick-6
+  PCFLAGS         = -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
+  DEFS            = -DHAVE_CONFIG_H
+  LDFLAGS         = -Wl,-z,relro -Wl,--as-needed -L/usr/lib/X11
+  MAGICK_LDFLAGS  = -L/usr/lib/x86_64-linux-gnu -Wl,-z,relro -Wl,--as-needed -L/usr/lib/X11
+  LIBS            = -lMagickCore -llcms2 -lfreetype -llqr-1 -lglib-2.0 -lfftw3 -lfontconfig -lXext -lSM -lICE -lX11 -lXt -llzma -lbz2 -lz -lltdl -lm -lgomp - lpthread
+  CXX             = g++
+  CXXFLAGS        = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -pthread
+  FEATURES        = DPC OpenMP Modules
+  DELEGATES       = bzlib djvu mpeg fftw fontconfig freetype jbig jng jp2 jpeg lcms lqr lzma openexr pango png ps tiff wmf x xml zlib