Blob Blame History Raw
diff -dur abbayedesmorts-gpl-9ce56f69dec5e185058508cb924b1f597a1380e5.orig/Makefile abbayedesmorts-gpl-9ce56f69dec5e185058508cb924b1f597a1380e5/Makefile
--- abbayedesmorts-gpl-9ce56f69dec5e185058508cb924b1f597a1380e5.orig/Makefile	2017-07-09 02:00:41.000000000 +0200
+++ abbayedesmorts-gpl-9ce56f69dec5e185058508cb924b1f597a1380e5/Makefile	2017-07-15 18:57:15.055808369 +0200
@@ -2,6 +2,7 @@
 
 CC?=		gcc
 CFLAGS?=	-O2 -finline-functions -funswitch-loops -fgcse-after-reload -fpredictive-commoning -ftree-vectorize
+LDFLAGS?=	-Wl,-z,relro
 
 CFLAGS+=	`sdl2-config --cflags` -DDATADIR="\"$(PREFIX)/share/abbayev2\""
 LIBS=		`sdl2-config --libs` -lSDL2_image -lSDL2_mixer -lm
@@ -21,7 +22,7 @@
 all: $(PROG)
 
 $(PROG): $(SRCS)
-	$(CC) $(CFLAGS) $(SRCS) -o $(PROG) $(LIBS)
+	$(CC) $(CFLAGS) $(LDFLAGS) $(SRCS) -o $(PROG) $(LIBS)
 
 clean:
 	rm -f ./abbayev2