forked from pool/mgetty
Link /usr/bin/newslock as PIE (bsc#1184124). - Modified fixpie.patch OBS-URL: https://build.opensuse.org/request/show/895406 OBS-URL: https://build.opensuse.org/package/show/Base:System/mgetty?expand=0&rev=46
27 lines
973 B
Diff
27 lines
973 B
Diff
Index: mgetty-1.2.1/fax/Makefile
|
|
===================================================================
|
|
--- mgetty-1.2.1.orig/fax/Makefile
|
|
+++ mgetty-1.2.1/fax/Makefile
|
|
@@ -36,7 +36,7 @@ faxheader: faxheader.in ../sedscript
|
|
@cd .. ; $(MAKE) sedscript
|
|
|
|
faxq-helper: faxq-helper.o
|
|
- $(CC) $(CFLAGS) -o faxq-helper faxq-helper.o
|
|
+ $(CC) $(LDFLAGS) -o faxq-helper faxq-helper.o
|
|
|
|
faxq-helper.o: faxq-helper.c ../sedscript
|
|
$(CC) $(CFLAGS) -DFAX_SPOOL_OUT=\"$(FAX_SPOOL_OUT)\" \
|
|
Index: mgetty-1.2.1/Makefile
|
|
===================================================================
|
|
--- mgetty-1.2.1.orig/Makefile
|
|
+++ mgetty-1.2.1/Makefile
|
|
@@ -569,7 +569,7 @@ sendfax.config: sendfax.cfg.in sedscript
|
|
./sedscript <sendfax.cfg.in >sendfax.config
|
|
|
|
newslock: compat/newslock.c
|
|
- $(CC) $(CFLAGS) -o newslock compat/newslock.c
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) -o newslock compat/newslock.c
|
|
|
|
# internal: use this to create a "clean" mgetty+sendfax tree
|
|
bindist: all doc-all sedscript
|