cbmbasic: Patch Makefile

- Respect existing CFLAGS by appending, rather than replacing.
 - Respect LDFLAGS.
 - Remove -O3 default.

As suggested by leot@
This commit is contained in:
Sijmen J. Mulder 2019-07-05 11:19:49 +02:00
parent a206165cb1
commit ad2d34f4e6
3 changed files with 24 additions and 6 deletions

View File

@ -10,12 +10,6 @@ HOMEPAGE= https://github.com/mist64/cbmbasic/
COMMENT= Portable implementation of Commodore BASIC
LICENSE= 2-clause-bsd
SUBST_CLASSES+= makefile
SUBST_STAGE.makefile= pre-configure
SUBST_MESSAGE.makefile= Adjust Makefile
SUBST_FILES.makefile= Makefile
SUBST_SED.makefile+= -e 's|-O3||g'
INSTALLATION_DIRS+= bin
do-install:

View File

@ -4,3 +4,4 @@ SHA1 (cbmbasic-0.0.20141206-89093eba090d6e1c2d2b6e1cb1616dba0ce9c7f6.tar.gz) = 4
RMD160 (cbmbasic-0.0.20141206-89093eba090d6e1c2d2b6e1cb1616dba0ce9c7f6.tar.gz) = 2b2d8b5c669ba92e133392a26993d24196027b08
SHA512 (cbmbasic-0.0.20141206-89093eba090d6e1c2d2b6e1cb1616dba0ce9c7f6.tar.gz) = 136a87af934834f98301d47217d443e50c9e8fd0f45725105c4266795a8f7751a864008d76571cc816c913abcf9ee24e457b35c08fa178c75d4167d7193fde6b
Size (cbmbasic-0.0.20141206-89093eba090d6e1c2d2b6e1cb1616dba0ce9c7f6.tar.gz) = 169327 bytes
SHA1 (patch-Makefile) = bf1b3c0747f509ddb23a66021b3abe41fddcff63

View File

@ -0,0 +1,23 @@
$NetBSD$
- Respect existing CFLAGS by appending, rather than replacing.
- Respect LDFLAGS
- Remove -O3 default.
https://github.com/mist64/cbmbasic/pull/5
--- Makefile
+++ Makefile
@@ -1,10 +1,10 @@
OBJS=cbmbasic.o runtime.o plugin.o console.o
-CFLAGS=-Wall -O3
+CFLAGS+=-Wall
all: cbmbasic
cbmbasic: $(OBJS)
- $(CC) -o cbmbasic $(OBJS)
+ $(CC) $(LDFLAGS) -o cbmbasic $(OBJS)
clean:
rm -f $(OBJS) cbmbasic