From 543395b991f3b9bc64791ce43b201e1f590eac11 Mon Sep 17 00:00:00 2001 From: marino Date: Fri, 12 Oct 2012 16:25:21 +0000 Subject: 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. --- lang/pforth/distinfo | 5 ++--- lang/pforth/patches/patch-build_unix_Makefile | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 lang/pforth/patches/patch-build_unix_Makefile (limited to 'lang/pforth') 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 \ -- cgit v1.2.3