[PATCH] D15455: [Driver] Let -static override the toolchain default PIC setting.

Frederic Riss via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 11 11:49:25 PST 2015


friss added a comment.

Just because it makes the behavior more intuitive? If you toolchain does PIC by default, it's because you are mostly building shared objects. When you are building a static object, it's highly likely that you don't need PIC. There should be a way to enable it, but I find it really awkward to have to spell "clang -static -fno-PIC" to get the intuitive behavior.


http://reviews.llvm.org/D15455





More information about the cfe-commits mailing list