[nqc] Build fixes for gcc 4.7

rmattes rmattes at fedoraproject.org
Sat Jan 14 18:05:45 UTC 2012


commit 7eaa45d8c578b72d9dbb646509ed84d1d5339ae3
Author: Rich Mattes <richmattes at gmail.com>
Date:   Sat Jan 14 13:05:34 2012 -0500

    Build fixes for gcc 4.7

 nqc-3.1.6.gcc47.patch |   12 ++++++++++++
 nqc.spec              |    2 ++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/nqc-3.1.6.gcc47.patch b/nqc-3.1.6.gcc47.patch
new file mode 100644
index 0000000..5dcc46b
--- /dev/null
+++ b/nqc-3.1.6.gcc47.patch
@@ -0,0 +1,12 @@
+diff -up ./Makefile.gcc47 ./Makefile
+--- ./Makefile.gcc47	2012-01-14 12:56:54.751665998 -0500
++++ ./Makefile	2012-01-14 12:57:03.897998378 -0500
+@@ -48,7 +48,7 @@ FLEX ?= flex
+ 
+ # Link in any necessary C++ libraries
+ #
+-LIBS ?= -lstdc++
++LIBS ?= -lstdc++ -lc
+ 
+ 
+ 
diff --git a/nqc.spec b/nqc.spec
index ae3fb15..b4281f7 100644
--- a/nqc.spec
+++ b/nqc.spec
@@ -21,6 +21,7 @@ Source11:       http://people.cs.uu.nl/markov/lego/tutorial_i.doc
 Source12:       http://people.cs.uu.nl/markov/lego/tutorial_t.doc
 Source13:       http://people.cs.uu.nl/markov/lego/tutorial_p.pdf
 Patch0:         nqc-3.1.6-linux.patch
+Patch1:         nqc-3.1.6.gcc47.patch
 BuildRequires:  flex >= 2.5 
 BuildRequires:  byacc
 Requires(pre):  %{_sbindir}/groupadd
@@ -89,6 +90,7 @@ Portuguese Documentation for NQC
 %prep
 %setup -c -q -n nqc-3.1.r6
 %patch0 -p1
+%patch1 -p0
 
 for i in %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5}; do
   %{__cp} --preserve=timestamps $i .


More information about the scm-commits mailing list