summaryrefslogtreecommitdiff
path: root/lang/pforth
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-10-12 16:25:21 +0000
committermarino <marino@pkgsrc.org>2012-10-12 16:25:21 +0000
commit543395b991f3b9bc64791ce43b201e1f590eac11 (patch)
treed5ff43592e29a39b2628c72da2918a2faf82c622 /lang/pforth
parent4f97ea08657dde216c7a6acb246597e208be034c (diff)
downloadpkgsrc-543395b991f3b9bc64791ce43b201e1f590eac11.tar.gz
lang/pforth: replace -c89 with -std=c89
GCC 4.7 doesn't recognized -c89 and breaks immediate. Use the -std switch to fix the build.
Diffstat (limited to 'lang/pforth')
-rw-r--r--lang/pforth/distinfo5
-rw-r--r--lang/pforth/patches/patch-build_unix_Makefile15
2 files changed, 17 insertions, 3 deletions
diff --git a/lang/pforth/distinfo b/lang/pforth/distinfo
index 416132753d5..bea3a706477 100644
--- a/lang/pforth/distinfo
+++ b/lang/pforth/distinfo
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.7 2010/11/22 01:25:48 asau Exp $
+$NetBSD: distinfo,v 1.8 2012/10/12 16:25:21 marino Exp $
SHA1 (pforth_v27_20101121.zip) = 66b9f3927a877afecca2c303157b7127291802f6
RMD160 (pforth_v27_20101121.zip) = e39965a79d4845763b6b767f5f7781f0d3758208
Size (pforth_v27_20101121.zip) = 209538 bytes
-SHA1 (patch-aa) = da39a3ee5e6b4b0d3255bfef95601890afd80709
-SHA1 (patch-ab) = da39a3ee5e6b4b0d3255bfef95601890afd80709
+SHA1 (patch-build_unix_Makefile) = 8f613560795eb8aaf212a3a54e19bd97f96d1b5f
diff --git a/lang/pforth/patches/patch-build_unix_Makefile b/lang/pforth/patches/patch-build_unix_Makefile
new file mode 100644
index 00000000000..8843cc4768d
--- /dev/null
+++ b/lang/pforth/patches/patch-build_unix_Makefile
@@ -0,0 +1,15 @@
+$NetBSD: patch-build_unix_Makefile,v 1.1 2012/10/12 16:25:21 marino Exp $
+
+GCC 4.7.2 breaks on the unrecognized -c89 switch. Use -std= instead.
+
+--- build/unix/Makefile.orig 2010-08-27 17:50:07.000000000 +0000
++++ build/unix/Makefile
+@@ -24,7 +24,7 @@ PFORTHAPP = pforth_standalone
+ WIDTHOPT=
+
+ FULL_WARNINGS = \
+- -c89 \
++ -std=c89 \
+ -fsigned-char \
+ -fno-builtin \
+ -fno-unroll-loops \