summaryrefslogtreecommitdiff
path: root/solenv/gcc-wrappers
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-12-01 11:35:40 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-12-02 08:02:22 +0100
commit895061b809e443e24896b1c851a7d4dafb045a68 (patch)
tree536ece3bfa2d3ad0bf2b813ac82a2ddb86ee3bc7 /solenv/gcc-wrappers
parentf95f1df02e76d44347cba47fb454c32dbd8fb501 (diff)
Filter out -fPIC too
...which happens to be passed in when building external/poppler with clang-cl Change-Id: I2c17bec316081a0cdc789a84bb1447acf5e893c0
Diffstat (limited to 'solenv/gcc-wrappers')
-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,")) {