File octave_tools_pie.patch of Package octave
--- src/module.mk | 9 +++++++++ 1 file changed, 9 insertions(+) Index: octave-10.2.0/src/module.mk =================================================================== --- octave-10.2.0.orig/src/module.mk +++ octave-10.2.0/src/module.mk @@ -77,6 +77,7 @@ nodist_%canon_reldir%_octave_SOURCES = % $(AM_LDFLAGS) \ $(NO_UNDEFINED_LDFLAG) \ $(OCTAVE_LINK_OPTS) \ + -pie \ $(WARN_LDFLAGS) \ $(OCTAVE_UNICODE_EXE_LDFLAGS) @@ -99,6 +100,7 @@ nodist_%canon_reldir%_octave_cli_SOURCES $(NO_UNDEFINED_LDFLAG) \ $(OCTAVE_LINK_OPTS) \ $(OCTAVE_CLI_LTLDFLAGS) \ + -pie \ $(WARN_LDFLAGS) \ $(OCTAVE_UNICODE_EXE_LDFLAGS) @@ -126,6 +128,7 @@ endif $(NO_UNDEFINED_LDFLAG) \ $(OCTAVE_GUI_LINK_OPTS) \ $(OCTAVE_GUI_LTLDFLAGS) \ + -pie \ $(WARN_LDFLAGS) \ $(OCTAVE_UNICODE_EXE_LDFLAGS) @@ -155,8 +158,14 @@ nodist_%canon_reldir%_mkoctfile_SOURCES $(OCTAVE_CPPFLAGS) \ -DOCTAVE_MEX_SOVERSION="$(OCTAVE_LIBOCTMEX_SOVERSION_MAJOR)" +%canon_reldir%_mkoctfile_LDFLAGS = \ + -pie + %canon_reldir%_octave_config_SOURCES = +%canon_reldir%_octave_config_LDFLAGS = \ + -pie + nodist_%canon_reldir%_octave_config_SOURCES = %reldir%/octave-config.cc %canon_reldir%_octave_config_LDADD = \