[PATCH] D19681: builtins: use -fPIC if supported

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 25 12:04:06 PDT 2016


compnerd added a subscriber: compnerd.
compnerd accepted this revision.
compnerd added a reviewer: compnerd.
This revision is now accepted and ready to land.

================
Comment at: lib/builtins/CMakeLists.txt:378
@@ -377,2 +377,3 @@
   append_string_if(COMPILER_RT_HAS_STD_C99_FLAG -std=c99 maybe_stdc99)
+  append_string_if(COMPILER_RT_HAS_FPIC_FLAG -fPIC maybe_fpic)
 
----------------
This needs to be more target specific.  Not all targets may support this flag.


http://reviews.llvm.org/D19681





More information about the llvm-commits mailing list