diff options
author | Andrew Kaster <andrewdkaster@gmail.com> | 2020-01-10 18:39:57 -0700 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-13 13:03:30 +0100 |
commit | c3be3718cfa8bc61279735fd060624ecb492d118 (patch) | |
tree | c870cb7a3f5bfabb932c0dd34852d5e981d852d9 /Demos/DynamicLink | |
parent | 7a7e7c82b5c9d3593305c090396850744926b0b9 (diff) | |
download | serenity-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/Makefile | 3 |
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 |