Blame SOURCES/brltty-4.5-relro-full.patch

567c2d
diff --git a/Programs/Makefile.in b/Programs/Makefile.in
567c2d
index 33d8c8a..622f206 100644
567c2d
--- a/Programs/Makefile.in
567c2d
+++ b/Programs/Makefile.in
567c2d
@@ -475,7 +475,7 @@ BRLTTY_OBJECTS = main.$O $(CORE_OBJECTS)
567c2d
 BRLTTY_LIBRARIES = $(BRAILLE_DRIVER_LIBRARIES) $(SPEECH_DRIVER_LIBRARIES) $(SCREEN_DRIVER_LIBRARIES) $(USB_LIBS) $(BLUETOOTH_LIBS) $(ICU_LIBRARIES) $(LDLIBS)
567c2d
 
567c2d
 brltty$X: $(BRLTTY_OBJECTS)
567c2d
-	$(CC) $(LDFLAGS) -o $@ $(BRLTTY_OBJECTS) $(BRLTTY_LIBRARIES)
567c2d
+	$(CC) $(LDFLAGS) -pie -Wl,-z,relro,-z,now -o $@ $(BRLTTY_OBJECTS) $(BRLTTY_LIBRARIES)
567c2d
 
567c2d
 main.$O:
567c2d
 	$(CC) $(CFLAGS) -c $(SRC_DIR)/main.c