diff options
author | obache <obache@pkgsrc.org> | 2014-05-20 12:26:11 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2014-05-20 12:26:11 +0000 |
commit | cf9cd8eb5436e9d5b500b65eeed71186ceb7e685 (patch) | |
tree | 24fa219e042cdd9b679de8e7ab7f698028148112 /emulators/xtrs/patches | |
parent | 3598754c0a38e183450542cb6550b0a3b750bb55 (diff) | |
download | pkgsrc-cf9cd8eb5436e9d5b500b65eeed71186ceb7e685.tar.gz |
CFLAGS/LDFLAGS are already defined as good enough, so use them.
Diffstat (limited to 'emulators/xtrs/patches')
-rw-r--r-- | emulators/xtrs/patches/patch-Makefile | 15 | ||||
-rw-r--r-- | emulators/xtrs/patches/patch-Makefile.local | 30 |
2 files changed, 45 insertions, 0 deletions
diff --git a/emulators/xtrs/patches/patch-Makefile b/emulators/xtrs/patches/patch-Makefile new file mode 100644 index 00000000000..243a0486103 --- /dev/null +++ b/emulators/xtrs/patches/patch-Makefile @@ -0,0 +1,15 @@ +$NetBSD: patch-Makefile,v 1.3 2014/05/20 12:26:11 obache Exp $ + +* Honor CFLAGS + +--- Makefile.orig 2009-06-15 23:35:20.000000000 +0000 ++++ Makefile +@@ -142,7 +142,7 @@ z80code: $(Z80CODE) + # Local customizations for make variables are done in Makefile.local: + include Makefile.local + +-CFLAGS = $(DEBUG) $(ENDIAN) $(DEFAULT_ROM) $(READLINE) $(DISKDIR) $(IFLAGS) \ ++CFLAGS += $(DEBUG) $(ENDIAN) $(DEFAULT_ROM) $(READLINE) $(DISKDIR) $(IFLAGS) \ + $(APPDEFAULTS) -DKBWAIT + LIBS = $(XLIB) $(READLINELIBS) $(EXTRALIBS) + diff --git a/emulators/xtrs/patches/patch-Makefile.local b/emulators/xtrs/patches/patch-Makefile.local new file mode 100644 index 00000000000..bb29b4cf9c7 --- /dev/null +++ b/emulators/xtrs/patches/patch-Makefile.local @@ -0,0 +1,30 @@ +$NetBSD: patch-Makefile.local,v 1.1 2014/05/20 12:26:11 obache Exp $ + +* Honor CFLAGS/LDFLAGS, already defined as good enough. + +--- Makefile.local.orig 2009-06-15 23:32:57.000000000 +0000 ++++ Makefile.local +@@ -54,7 +54,7 @@ READLINELIBS = -lreadline -lncurses + + # Select debugging symbols (-g) and/or optimization (-O2, etc.) + +-DEBUG = -O2 -g -Wall ++#DEBUG = -O2 -g -Wall + #DEBUG = -g -DKBDEBUG -DXDEBUG + #DEBUG = -g + #DEBUG = -Wall +@@ -65,12 +65,12 @@ DEBUG = -O2 -g -Wall + + # If you need a different path for libraries: + +-LDFLAGS = -L/usr/X11R6/lib ++#LDFLAGS = -L/usr/X11R6/lib + #LDFLAGS = -non_shared -L/usr/X11/lib + + # If you need a different path for include files: + +-IFLAGS = -I/usr/include/X11 ++#IFLAGS = -I/usr/include/X11 + + # Re-define this if your X library is strangely named: + |