[yosys] 52/57: Added patch for passing down cflags etc.

Ruben Undheim rubund-guest at moszumanska.debian.org
Wed Sep 17 16:08:18 UTC 2014


This is an automated email from the git hooks/post-receive script.

rubund-guest pushed a commit to branch master
in repository yosys.

commit f58fc30b1d38faa8fc794fb7407f55f21e525989
Author: Ruben Undheim <ruben.undheim at gmail.com>
Date:   Sun Sep 14 12:30:52 2014 +0200

    Added patch for passing down cflags etc.
---
 debian/patches/06_cflags_ldflags.patch | 32 ++++++++++++++++++++++++++++++++
 debian/patches/series                  |  1 +
 2 files changed, 33 insertions(+)

diff --git a/debian/patches/06_cflags_ldflags.patch b/debian/patches/06_cflags_ldflags.patch
new file mode 100644
index 0000000..0236769
--- /dev/null
+++ b/debian/patches/06_cflags_ldflags.patch
@@ -0,0 +1,32 @@
+Description: Patch to make CPPFLAGS, CXXFLAGS and LDFLAGS
+  from dpkg-buildflags be used.
+Forwarded: will do
+Author: Ruben Undheim <ruben.undheim at gmail.com>
+Index: yosys/Makefile
+===================================================================
+--- yosys.orig/Makefile	2014-09-14 12:27:43.000000000 +0200
++++ yosys/Makefile	2014-09-14 12:28:36.066660204 +0200
+@@ -27,8 +27,8 @@
+ 
+ all: top-all
+ 
+-CXXFLAGS = -Wall -Wextra -ggdb -I"$(shell pwd)" -MD -DYOSYS_SRC='"$(shell pwd)"' -D_YOSYS_ -fPIC -I${DESTDIR}/include
+-LDFLAGS = -L${DESTDIR}/lib
++CXXFLAGS += -Wall -Wextra -ggdb -I"$(shell pwd)" -MD -DYOSYS_SRC='"$(shell pwd)"' -D_YOSYS_ -fPIC -I${DESTDIR}/include
++LDFLAGS += -L${DESTDIR}/lib
+ LDLIBS = -lstdc++ -lm
+ QMAKE = qmake-qt4
+ SED = sed
+@@ -195,10 +195,10 @@
+ 	$(P) $(CXX) -o yosys $(LDFLAGS) $(OBJS) $(LDLIBS)
+ 
+ %.o: %.cc
+-	$(P) $(CXX) -o $@ -c $(CXXFLAGS) $<
++	$(P) $(CXX) -o $@ -c $(CPPFLAGS) $(CXXFLAGS) $<
+ 
+ %.o: %.cpp
+-	$(P) $(CXX) -o $@ -c $(CXXFLAGS) $<
++	$(P) $(CXX) -o $@ -c $(CPPFLAGS) $(CXXFLAGS) $<
+ 
+ kernel/version_$(GIT_REV).cc: Makefile
+ 	$(P) rm -f kernel/version_*.o kernel/version_*.d kernel/version_*.cc
diff --git a/debian/patches/series b/debian/patches/series
index 8a94269..a91ae4f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
 03_notruntests.patch
 04_installpath.patch
 05_abc_executable.patch
+06_cflags_ldflags.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/yosys.git



More information about the debian-science-commits mailing list