SHA256
1
0
forked from pool/ruby3.2
ruby3.2/use-pie.patch

14 lines
600 B
Diff
Raw Normal View History

Index: ruby-3.2.0/template/Makefile.in
===================================================================
--- ruby-3.2.0.orig/template/Makefile.in
+++ ruby-3.2.0/template/Makefile.in
@@ -302,7 +302,7 @@ miniruby$(EXEEXT):
$(PROGRAM):
@$(RM) $@
$(ECHO) linking $@
- $(Q) $(PURIFY) $(CC) $(EXE_LDFLAGS) $(XLDFLAGS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBYARG) $(MAINLIBS) $(LIBS) $(EXTLIBS) $(OUTFLAG)$@
+ $(Q) $(PURIFY) $(CC) -pie $(EXE_LDFLAGS) $(XLDFLAGS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBYARG) $(MAINLIBS) $(LIBS) $(EXTLIBS) $(OUTFLAG)$@
$(Q) $(POSTLINK)
$(PROGRAM): @XRUBY_LIBPATHENV_WRAPPER@