[PATCH] D65773: Build libfuzzer libcxx-static with PIC

Yi Kong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 5 15:56:30 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL367943: Build libfuzzer libcxx-static with PIC (authored by kongyi, committed by ).
Herald added a subscriber: delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D65773?vs=213449&id=213484#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65773/new/

https://reviews.llvm.org/D65773

Files:
  compiler-rt/trunk/lib/fuzzer/CMakeLists.txt


Index: compiler-rt/trunk/lib/fuzzer/CMakeLists.txt
===================================================================
--- compiler-rt/trunk/lib/fuzzer/CMakeLists.txt
+++ compiler-rt/trunk/lib/fuzzer/CMakeLists.txt
@@ -143,6 +143,7 @@
     add_custom_libcxx(libcxx_fuzzer_${arch} ${LIBCXX_${arch}_PREFIX}
       CFLAGS ${TARGET_CFLAGS}
       CMAKE_ARGS -DCMAKE_CXX_COMPILER_WORKS=ON
+                 -DCMAKE_POSITION_INDEPENDENT_CODE=ON
                  -DLIBCXX_ABI_NAMESPACE=Fuzzer)
     target_compile_options(RTfuzzer.${arch} PRIVATE -isystem ${LIBCXX_${arch}_PREFIX}/include/c++/v1)
     add_dependencies(RTfuzzer.${arch} libcxx_fuzzer_${arch}-build)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65773.213484.patch
Type: text/x-patch
Size: 659 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190805/4bdb422a/attachment.bin>


More information about the llvm-commits mailing list