CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2019/02/14 01:40:16
Modified files:
gnu/usr.bin/clang/include/llvm/Config: llvm-config.h
Log message:
When bsd.lib.mk builds shared libraries it builds with -DPIC which
causes problems in the following files which use PIC as a variable name.
Undefine PIC in llvm-config.h to minimise the diff to upstream LLVM.
include/llvm/MC/MCObjectFileInfo.h
lib/MC/MCObjectFileInfo.cpp
lib/Transforms/Scalar/LICM.cpp
lib/Transforms/Utils/PredicateInfo.cpp
These are the files that would be built as part of a shared libLLVM.
There are other files with PIC variable names in clang code.
#undef PIC approach suggested by kettenis@