From 5a0275c247730040af91666518a6aa3f518e6905 Mon Sep 17 00:00:00 2001 From: Nick Erdmann Date: Mon, 19 Aug 2019 00:20:07 +0200 Subject: [PATCH] fix error message when dependency requires position independent code --- src/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ir.cpp b/src/ir.cpp index 31b354be3..65a66c841 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -17179,7 +17179,7 @@ static void add_link_lib_symbol(IrAnalyze *ira, Buf *lib_name, Buf *symbol_name, buf_sprintf("dependency on dynamic library '%s' requires enabling Position Independent Code", buf_ptr(lib_name))); add_error_note(ira->codegen, msg, source_node, - buf_sprintf("fixed by `--library %s` or `--enable-pic`", buf_ptr(lib_name))); + buf_sprintf("fixed by `--library %s` or `-fPIC`", buf_ptr(lib_name))); ira->codegen->reported_bad_link_libc_error = true; }