SHA256
1
0
forked from pool/givaro
givaro/0001-pkgconfig-file-must-not-have-non-I-flags.patch

40 lines
1.4 KiB
Diff

From 4775e15fe538e49237d267c677be1fe68929ab9d Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Sun, 10 Sep 2017 00:03:02 +0200
Subject: [PATCH] pkgconfig file must not have non -I flags
The Cflags directive in .pc files is really meant for the
preprocessor, not for the compiler. It must only contain -D and -I
flags. Otherwise, it forces flags on downstream programs that may not
want them.
In case of the build.opensuse.org build farm, it has even led to
crashes as the machine that was randomly selected to build givaro had
SSE4, emitting -msse4.1 into Cflags, while the machine randomly
selected to build fflas-ffpack had only SSE2. That cannot work.
"Cflags: -I/usr/include -fmessage-length=0 -grecord-gcc-switches -O2
-Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables
-fasynchronous-unwind-tables -mmmx -mpopcnt -msse -msse2 -msse3
-msse4.1 -msse4.2 -msse4a -mavx -mfma -mfma4 -mbmi -mfpmath=sse
-fabi-version=6"
---
givaro.pc.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/givaro.pc.in b/givaro.pc.in
index 274d87e..6e837ff 100644
--- a/givaro.pc.in
+++ b/givaro.pc.in
@@ -10,5 +10,5 @@ URL: http://givaro.forge.imag.fr
Version: @VERSION@
Requires:
Libs: -L@libdir@ -lgivaro @LIBS@
-Cflags: -I@includedir@ @CXXFLAGS@
+Cflags: -I@includedir@
\-------------------------------------------------------
\ No newline at end of file
--
2.14.1