1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/compilers/rust/patches/grsec.patch

25 lines
734 B
Diff
Raw Normal View History

2015-01-19 17:41:28 +00:00
diff --git a/src/test/run-make/relocation-model/Makefile b/src/test/run-make/relocation-model/Makefile
2015-12-23 23:21:35 +00:00
index b22f34f..c6489bd 100644
2015-01-19 17:41:28 +00:00
--- a/src/test/run-make/relocation-model/Makefile
+++ b/src/test/run-make/relocation-model/Makefile
2015-12-23 23:21:35 +00:00
@@ -2,9 +2,11 @@
all: others
$(RUSTC) -C relocation-model=dynamic-no-pic foo.rs
+ paxctl -czexm $(TMPDIR)/foo
2015-01-19 17:41:28 +00:00
$(call RUN,foo)
$(RUSTC) -C relocation-model=default foo.rs
+ paxctl -czexm $(TMPDIR)/foo
$(call RUN,foo)
2015-12-23 23:21:35 +00:00
$(RUSTC) -C relocation-model=default --crate-type=dylib foo.rs
@@ -16,6 +18,7 @@ others:
else
others:
2015-01-19 17:41:28 +00:00
$(RUSTC) -C relocation-model=static foo.rs
+ paxctl -czexm $(TMPDIR)/foo
$(call RUN,foo)
2015-12-23 23:21:35 +00:00
$(RUSTC) -C relocation-model=static --crate-type=dylib foo.rs
endif