summarylogtreecommitdiffstats
path: root/ldflags_relro.patch
blob: a9a6268f72526930e73dc7eef1b2f164be6fd71e (plain)
1
2
3
4
5
6
7
8
9
10
11
--- Makefile.orig	2018-12-26 17:34:57.439917000 +0100
+++ Makefile	2018-12-26 17:55:40.305447679 +0100
@@ -1,7 +1,7 @@
 VERSION=540.1.linux3
 
 CFLAGS += -I$(PWD)/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"$(VERSION)\"
-LDFLAGS := -Wl,--build-id
+LDFLAGS := -Wl,--build-id,-O1,--sort-common,--as-needed,-z,relro,-z,now
 SUBDIRS := newfs_hfs.tproj fsck_hfs.tproj
 
 all clean: