summaryrefslogtreecommitdiff
path: root/Demos/DynamicLink
diff options
context:
space:
mode:
authorAndrew Kaster <andrewdkaster@gmail.com>2020-01-10 18:39:57 -0700
committerAndreas Kling <awesomekling@gmail.com>2020-01-13 13:03:30 +0100
commitc3be3718cfa8bc61279735fd060624ecb492d118 (patch)
treec870cb7a3f5bfabb932c0dd34852d5e981d852d9 /Demos/DynamicLink
parent7a7e7c82b5c9d3593305c090396850744926b0b9 (diff)
downloadserenity-c3be3718cfa8bc61279735fd060624ecb492d118.zip
Demos: Compile LinkDemo as a PIE with interpreter /lib/lib-elf.so
Diffstat (limited to 'Demos/DynamicLink')
-rw-r--r--Demos/DynamicLink/LinkDemo/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Demos/DynamicLink/LinkDemo/Makefile b/Demos/DynamicLink/LinkDemo/Makefile
index def5edea1f..3bc32984ec 100644
--- a/Demos/DynamicLink/LinkDemo/Makefile
+++ b/Demos/DynamicLink/LinkDemo/Makefile
@@ -3,4 +3,7 @@ OBJS = \
PROGRAM = LinkDemo
+SUBPROJECT_CXXFLAGS = -fPIC
+LDFLAGS = -pie -Wl,--dynamic-linker=/lib/ld-elf.so
+
include ../../../Makefile.common