From d05ec5e484a5af29c532161e1cd9edd1932e7f1d Mon Sep 17 00:00:00 2001 From: Constantine Tarasenkov Date: Fri, 28 Apr 2017 18:08:11 +0300 Subject: [PATCH] Fix link time error about missing -fPIC flag --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 " "",