blob: a216a12652c453635bb1a5689b0e9985dd6c0a3c (
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
28
29
|
From 6beb3a86c459a9fc2d27a4c538286b199965a267 Mon Sep 17 00:00:00 2001
From: Coelacanthus <coelacanthus@outlook.com>
Date: Sun, 31 Jan 2021 21:24:01 +0800
Subject: [PATCH 2/2] using custom cflag and ldflag
---
installwatch/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/installwatch/Makefile b/installwatch/Makefile
index 4c7eb36..cf1be2f 100644
--- a/installwatch/Makefile
+++ b/installwatch/Makefile
@@ -16,10 +16,10 @@ LIBDIR=$(PREFIX)/lib
all: installwatch.so
installwatch.so: installwatch.o
- ld -shared -o installwatch.so installwatch.o -ldl -lc
+ ld -znow -shared -o installwatch.so installwatch.o -ldl -lc
installwatch.o: installwatch.c localdecls.h
- gcc -Wall -c -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DVERSION=\"$(VERSION)\" installwatch.c
+ gcc $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -Wall -c -g -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DVERSION=\"$(VERSION)\" installwatch.c
localdecls.h: create-localdecls
./create-localdecls
--
2.30.0
|