summarylogtreecommitdiffstats
path: root/0024-using-custom-cflag-and-ldflag.patch
diff options
context:
space:
mode:
authorCoelacanthus2021-01-31 21:36:39 +0800
committerCoelacanthus2021-01-31 21:36:39 +0800
commitc22d81f480d091541aa07e9bdb5b9679a809eae5 (patch)
treed27a309ca0e8a42b9d987c0146621deb6be83c69 /0024-using-custom-cflag-and-ldflag.patch
parent1fdb021fec4a060796e9ad140e77f8f641a329c5 (diff)
downloadaur-c22d81f480d091541aa07e9bdb5b9679a809eae5.tar.gz
upgpkg: checkinstall 1.6.2-2
follow upstream bug fix fix no FULL RELRO
Diffstat (limited to '0024-using-custom-cflag-and-ldflag.patch')
-rw-r--r--0024-using-custom-cflag-and-ldflag.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/0024-using-custom-cflag-and-ldflag.patch b/0024-using-custom-cflag-and-ldflag.patch
new file mode 100644
index 00000000000..a216a12652c
--- /dev/null
+++ b/0024-using-custom-cflag-and-ldflag.patch
@@ -0,0 +1,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
+