aboutsummaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
Diffstat (limited to 'lang')
-rw-r--r--lang/cbmbasic/Makefile2
-rw-r--r--lang/cbmbasic/files/patch-Makefile14
2 files changed, 16 insertions, 0 deletions
diff --git a/lang/cbmbasic/Makefile b/lang/cbmbasic/Makefile
index 48c0ea4b7aaf..74e4a8ac53a1 100644
--- a/lang/cbmbasic/Makefile
+++ b/lang/cbmbasic/Makefile
@@ -15,6 +15,8 @@ USE_GITHUB= yes
GH_ACCOUNT= mist64
GH_TAGNAME= 89093eba090d6e1c2d2b6e1cb1616dba0ce9c7f6
+CFLAGS+= -fcommon
+
PLIST_FILES= bin/cbmbasic
do-install:
diff --git a/lang/cbmbasic/files/patch-Makefile b/lang/cbmbasic/files/patch-Makefile
new file mode 100644
index 000000000000..f1153ee96805
--- /dev/null
+++ b/lang/cbmbasic/files/patch-Makefile
@@ -0,0 +1,14 @@
+--- Makefile.orig 2014-12-06 23:57:18 UTC
++++ Makefile
+@@ -1,10 +1,9 @@
+ OBJS=cbmbasic.o runtime.o plugin.o console.o
+-CFLAGS=-Wall -O3
+
+ all: cbmbasic
+
+ cbmbasic: $(OBJS)
+- $(CC) -o cbmbasic $(OBJS)
++ $(CC) $(CFLAGS) -o cbmbasic $(OBJS)
+
+ clean:
+ rm -f $(OBJS) cbmbasic