--- 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:
