Reported by jwodder via PR pkg/43209 (patch similar in spirit but it's a bit less intrusive).
30 lines
753 B
Text
30 lines
753 B
Text
$NetBSD: patch-aa,v 1.3 2016/05/31 08:13:45 leot Exp $
|
|
|
|
- Do not force CC or CFLAGS
|
|
- Honor LDFLAGS
|
|
|
|
--- Makefile.orig 2006-06-11 15:52:50.000000000 +0000
|
|
+++ Makefile
|
|
@@ -1,5 +1,3 @@
|
|
-CC = gcc
|
|
-CFLAGS = -O2
|
|
VERSION = 1.0.8
|
|
|
|
TARGET = ttyrec ttyplay ttytime
|
|
@@ -10,13 +8,13 @@ DIST = ttyrec.c ttyplay.c ttyrec.h io.c
|
|
all: $(TARGET)
|
|
|
|
ttyrec: ttyrec.o io.o
|
|
- $(CC) $(CFLAGS) -o ttyrec ttyrec.o io.o
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) -o ttyrec ttyrec.o io.o
|
|
|
|
ttyplay: ttyplay.o io.o
|
|
- $(CC) $(CFLAGS) -o ttyplay ttyplay.o io.o
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) -o ttyplay ttyplay.o io.o
|
|
|
|
ttytime: ttytime.o io.o
|
|
- $(CC) $(CFLAGS) -o ttytime ttytime.o io.o
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) -o ttytime ttytime.o io.o
|
|
|
|
clean:
|
|
rm -f *.o $(TARGET) ttyrecord *~
|