summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--solenv/gcc-wrappers/wrapper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/gcc-wrappers/wrapper.cxx b/solenv/gcc-wrappers/wrapper.cxx
index 0c6093434b59..60e61594305a 100644
--- a/solenv/gcc-wrappers/wrapper.cxx
+++ b/solenv/gcc-wrappers/wrapper.cxx
@@ -147,7 +147,7 @@ string processccargs(vector<string> rawargs) {
// "foo.def" by itself
linkargs.append(" " + *i);
}
- else if(!(*i).compare(0,12,"-fvisibility")) {
+ else if(!(*i).compare(0,12,"-fvisibility") || *i == "-fPIC") {
//TODO: drop other gcc-specific options
}
else if(!(*i).compare(0,4,"-Wl,")) {