summaryrefslogtreecommitdiff
path: root/net/mkvserver_mk2/patches/patch-Makefile
blob: 52c2459a7e5c4aac27cace6ea0ef9d545cc746b6 (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-Makefile,v 1.1 2020/12/01 11:48:49 nia Exp $

Respect CFLAGS/LDFLAGS.

--- Makefile.orig	2020-01-16 23:31:37.000000000 +0000
+++ Makefile
@@ -9,16 +9,16 @@ all: server
 
 server: segment.o buffer.o publisher.o server2.c
 	#$(CC) -g -Wall $(LAV_CFLAGS) $(LAV_LDFLAGS) -pthread -o server segment.o buffer.o publisher.o server2.c
-	$(CC) -g -Wall $(LAV_CFLAGS) -pthread -o server segment.o buffer.o publisher.o server2.c $(LAV_LDFLAGS)
+	$(CC) $(LDFLAGS) -Wall $(LAV_CFLAGS) -pthread -o server segment.o buffer.o publisher.o server2.c $(LAV_LDFLAGS)
 
 segment.o: segment.c segment.h
-	$(CC) -g -Wall $(LAV_CFLAGS) -pthread -c segment.c
+	$(CC) $(CFLAGS) -Wall $(LAV_CFLAGS) -pthread -c segment.c
 
 buffer.o: buffer.c buffer.h
-	$(CC) -g -Wall $(LAV_CFLAGS) -pthread -c buffer.c
+	$(CC) $(CFLAGS) -Wall $(LAV_CFLAGS) -pthread -c buffer.c
 
 publisher.o: publisher.c publisher.h
-	$(CC) -g -Wall $(LAV_CFLAGS) -pthread -c publisher.c
+	$(CC) $(CFLAGS) -Wall $(LAV_CFLAGS) -pthread -c publisher.c
 
 clean:
 	rm -f *.o server