From 7d6a6358f80d7dfe3c8428209f5cd6c6990f73a2 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Tue, 4 Dec 2012 10:54:32 +0100 Subject: [PATCH] Fix linker warning. When compiling LLVM with GCC or Clang, the visibility for inline methods is set to hidden. When linking code compiled without this flag to LLVM, the system linker will produce warnings like: ld: warning: direct access in llvm::fdbgs() to global weak symbol llvm::formatted_raw_ostream::~formatted_raw_ostream() means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings. Change-Id: Ia86ff44660d448c8b0673e229137855e56c895f5 Reviewed-by: Simon Hausmann --- v4.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v4.pro b/v4.pro index ce1409b..3aecdab 100644 --- a/v4.pro +++ b/v4.pro @@ -57,7 +57,7 @@ HEADERS += \ INCLUDEPATH += \ $$system($$LLVM_CONFIG --includedir) -QMAKE_CXXFLAGS += $$system($$LLVM_CONFIG --cppflags) +QMAKE_CXXFLAGS += $$system($$LLVM_CONFIG --cppflags) -fvisibility-inlines-hidden LIBS += \ $$system($$LLVM_CONFIG --ldflags) \ -- 2.7.4