aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorConstantine Tarasenkov <constantine@protonmail.com>2017-04-28 18:08:11 +0300
committerConstantine Tarasenkov <constantine@protonmail.com>2017-04-28 18:08:11 +0300
commitd05ec5e484a5af29c532161e1cd9edd1932e7f1d (patch)
tree8441905e210985576ddee8912d039d0f7bde740c /src
parentc7575164ccba1b16d3ee3f160c6b4ebd2b337307 (diff)
Fix link time error about missing -fPIC flag
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 68673949b..fa0f99398 100644
--- a/src/main.c
+++ b/src/main.c
@@ -360,7 +360,7 @@ int main(int argc, char **argv) {
timings_start_section(&timings, str_lit("llvm-llc"));
// For more arguments: http://llvm.org/docs/CommandGuide/llc.html
exit_code = system_exec_command_line_app("llc", false,
- "llc \"%.*s.bc\" -filetype=obj -O%d "
+ "llc \"%.*s.bc\" -filetype=obj -relocation-model=pic -O%d "
"%.*s "
// "-debug-pass=Arguments "
"",