-fPIC ignored for target (all code is position independent), useless warning
问题 When I compile my library I have switched ont -fPIC because I want to be able to compile it as a shared library but also as static. Using gcc 3.4.4 on cygwin I get this warning on all source files: -fPIC ignored for target (all code is position independent) And I really wonder what's the point of it. It tells me that I use a switch which has no effect because what the switch should avieche is already accomplished. Well, it means it's redundant, fine. But what's the point of it and how can I