27 lines
733 B
Text
27 lines
733 B
Text
$NetBSD: patch-af,v 1.4 2012/05/23 04:51:38 dholland Exp $
|
|
|
|
- don't erase the default pkgsrc CFLAGS.
|
|
- honor LDFLAGS.
|
|
|
|
--- netbsd/makefile.orig 2012-05-23 04:59:39.000000000 +0000
|
|
+++ netbsd/makefile
|
|
@@ -14,8 +14,8 @@ HDIR = ../h
|
|
|
|
# options and arguments to the C compiler
|
|
|
|
-#CFLAGS += -I. -I$(HDIR)
|
|
-CFLAGS = -O -I. -I$(HDIR)
|
|
+CFLAGS += -I. -I$(HDIR)
|
|
+#CFLAGS = -O -I. -I$(HDIR)
|
|
|
|
# list of header files
|
|
|
|
@@ -38,7 +38,7 @@ all: emacs
|
|
OFILES = $(F1) $(F2) $(F3) $(F4) $(F5) $(F6) $(F7)
|
|
|
|
emacs: $(OFILES)
|
|
- $(CC) $(CFLAGS) $(OFILES) -ltermcap -lc -o emacs
|
|
+ $(CC) $(LDFLAGS) $(CFLAGS) $(OFILES) -ltermcap -lc -o emacs
|
|
|
|
$(OBJD)/abbrev.o: $(SRCD)/abbrev.c $(HFILES)
|
|
$(CC) $(CFLAGS) -c -o $(OBJD)/abbrev.o $(SRCD)/abbrev.c
|