[cfe-dev] Why -fno-pic and -fPIC gives the same results?

Peng Yu via cfe-dev cfe-dev at lists.llvm.org
Thu Jan 24 07:27:49 PST 2019


Hi,

I got this. Why -fno-pic and -fPIC are the same?

$ cat f.c
void f() { }
$ clang -fno-pic f.c -c -o nopic.o
$ clang -fPIC f.c -c -o pic.o
$ cmp nopic.o pic.o
$ echo "$?"
0

-- 
Regards,
Peng



More information about the cfe-dev mailing list