blob: 1ff9d434e86c96bb917ba33cebb5412451383391 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
$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
|