summaryrefslogtreecommitdiff
path: root/debian/patches/0011-Do-not-show-g-build-flags-in-Version-string.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0011-Do-not-show-g-build-flags-in-Version-string.patch')
-rw-r--r--debian/patches/0011-Do-not-show-g-build-flags-in-Version-string.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/0011-Do-not-show-g-build-flags-in-Version-string.patch b/debian/patches/0011-Do-not-show-g-build-flags-in-Version-string.patch
new file mode 100644
index 00000000..10ceec2c
--- /dev/null
+++ b/debian/patches/0011-Do-not-show-g-build-flags-in-Version-string.patch
@@ -0,0 +1,22 @@
+From: Ruben Undheim <ruben.undheim@gmail.com>
+Date: Sun, 19 Aug 2018 23:03:51 +0200
+Subject: Do not show g++ build flags in Version string
+
+---
+ Makefile | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index aa66a54..8613943 100644
+--- a/Makefile
++++ b/Makefile
+@@ -370,8 +370,7 @@ libyosys.so: $(filter-out kernel/driver.o,$(OBJS))
+ $(Q) mkdir -p $(dir $@)
+ $(P) $(CXX) -o $@ -c $(CPPFLAGS) $(CXXFLAGS) $<
+
+-YOSYS_VER_STR := Yosys $(YOSYS_VER) (git sha1 $(GIT_REV), $(notdir $(CXX)) $(shell \
+- $(CXX) --version | tr ' ()' '\n' | grep '^[0-9]' | head -n1) $(filter -f% -m% -O% -DNDEBUG,$(CXXFLAGS)))
++YOSYS_VER_STR := Yosys $(YOSYS_VER) (git sha1 $(GIT_REV))
+
+ kernel/version_$(GIT_REV).cc: $(YOSYS_SRC)/Makefile
+ $(P) rm -f kernel/version_*.o kernel/version_*.d kernel/version_*.cc