summaryrefslogtreecommitdiff
path: root/graphics/qr-code-generator16/patches/patch-c_Makefile
blob: 8c41b4a009ef94b43df4380f090e3fc1c4eb852e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-c_Makefile,v 1.1 2021/08/17 07:59:19 wiz Exp $

Honor LDFLAGS.
https://github.com/nayuki/QR-Code-generator/pull/76

--- c/Makefile.orig	2018-11-02 00:40:31.000000000 +0000
+++ c/Makefile
@@ -66,11 +66,11 @@ clean:
 
 # Executable files
 %: %.o $(LIBFILE)
-	$(CC) $(CFLAGS) -o $@ $< -L . -l $(LIB)
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -L . -l $(LIB)
 
 # Special executable
 qrcodegen-test: qrcodegen-test.c $(LIBOBJ:%.o=%.c)
-	$(CC) $(CFLAGS) -DQRCODEGEN_TEST -o $@ $^
+	$(CC) $(CFLAGS) $(LDFLAGS) -DQRCODEGEN_TEST -o $@ $^
 
 # The library
 $(LIBFILE): $(LIBOBJ)