diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-12-01 11:35:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-12-02 08:02:22 +0100 |
commit | 895061b809e443e24896b1c851a7d4dafb045a68 (patch) | |
tree | 536ece3bfa2d3ad0bf2b813ac82a2ddb86ee3bc7 | |
parent | f95f1df02e76d44347cba47fb454c32dbd8fb501 (diff) |
Filter out -fPIC too
...which happens to be passed in when building external/poppler with clang-cl
Change-Id: I2c17bec316081a0cdc789a84bb1447acf5e893c0
-rw-r--r-- | solenv/gcc-wrappers/wrapper.cxx | 2 |
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,")) { |