diff options
Diffstat (limited to 'src/Makefile.in')
| -rw-r--r-- | src/Makefile.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Makefile.in b/src/Makefile.in index 78e555d8733..00889e9a277 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -108,11 +108,12 @@ LD_SWITCH_SYSTEM_TEMACS=@LD_SWITCH_SYSTEM_TEMACS@ | |||
| 108 | ## Flags to pass to ld only for temacs. | 108 | ## Flags to pass to ld only for temacs. |
| 109 | TEMACS_LDFLAGS = $(LD_SWITCH_SYSTEM) $(LD_SWITCH_SYSTEM_TEMACS) | 109 | TEMACS_LDFLAGS = $(LD_SWITCH_SYSTEM) $(LD_SWITCH_SYSTEM_TEMACS) |
| 110 | 110 | ||
| 111 | ## If available, the full path to the paxctl program. | 111 | ## If available, the names of the paxctl and setfattr programs. |
| 112 | ## On grsecurity/PaX systems, unexec will fail due to a gap between | 112 | ## On grsecurity/PaX systems, unexec will fail due to a gap between |
| 113 | ## the bss section and the heap. This can be prevented by disabling | 113 | ## the bss section and the heap. Older versions nee paxctl to work |
| 114 | ## memory randomization in temacs with "paxctl -r". See bug#11398. | 114 | ## around this, newer ones setfattr. See Bug#11398 and Bug#16343. |
| 115 | PAXCTL = @PAXCTL@ | 115 | PAXCTL = @PAXCTL@ |
| 116 | SETFATTR = @SETFATTR@ | ||
| 116 | 117 | ||
| 117 | ## Some systems define this to request special libraries. | 118 | ## Some systems define this to request special libraries. |
| 118 | LIBS_SYSTEM=@LIBS_SYSTEM@ | 119 | LIBS_SYSTEM=@LIBS_SYSTEM@ |
| @@ -494,6 +495,8 @@ temacs$(EXEEXT): $(LIBXMENU) $(ALLOBJS) \ | |||
| 494 | $(TEMACS_POST_LINK) | 495 | $(TEMACS_POST_LINK) |
| 495 | test "$(CANNOT_DUMP)" = "yes" || \ | 496 | test "$(CANNOT_DUMP)" = "yes" || \ |
| 496 | test "X$(PAXCTL)" = X || $(PAXCTL) -r temacs$(EXEEXT) | 497 | test "X$(PAXCTL)" = X || $(PAXCTL) -r temacs$(EXEEXT) |
| 498 | test "$(CANNOT_DUMP)" = "yes" || test -z "$(SETFATTR)" || \ | ||
| 499 | $(SETFATTR) -n user.pax.flags -v r $@ | ||
| 497 | 500 | ||
| 498 | ## The following oldxmenu-related rules are only (possibly) used if | 501 | ## The following oldxmenu-related rules are only (possibly) used if |
| 499 | ## HAVE_X11 && !USE_GTK, but there is no harm in always defining them. | 502 | ## HAVE_X11 && !USE_GTK, but there is no harm in always defining them. |