Root/bwbasic/patches/001-pass-openwrt-CFLAGS.patch

1diff --git a/Makefile.ncu b/Makefile.ncu
2index e852faf..d5b5b2d 100644
3--- a/Makefile.ncu
4+++ b/Makefile.ncu
5@@ -19,13 +19,13 @@ DEFS = -DHAVE_STRING=1 -DHAVE_STDLIB=1 -DHAVE_RAISE=1 -DHAVE_UNISTD=1
6 
7 # Revised by JBV
8 #CFLAGS = -O
9-CFLAGS = -g -ansi
10+CFLAGS += -g -ansi
11 
12 # Revised by JBV
13 #LDFLAGS = -s
14 
15 prefix = /usr/local
16-exec_prefix = $(prefix)
17+exec_prefix = $(DESTDIR)$(prefix)
18 bindir = $(exec_prefix)/bin
19 
20 SHELL = /bin/sh
21@@ -87,6 +87,7 @@ $(OFILES): $(HFILES)
22     $(CC) -c $(CPPFLAGS) -I$(srcdir) $(DEFS) $(CFLAGS) $<
23 
24 install: all
25+ mkdir -p $(bindir)
26     $(INSTALL_PROGRAM) bwbasic $(bindir)/bwbasic
27 
28 uninstall:
29

Archive Download this file



interactive