Commit ce226eb0 authored by Andrew Hsieh's avatar Andrew Hsieh
Browse files

Fix error with -Wl,-shared

Android's clang errors on the following line because its passes -pie
to linker:

  clang++ -Wl,-shared myfile.c

  .../arm-linux-androideabi/bin/ld: fatal error: -shared and -pie are incompatible

Clang should check the existance of "-Wl,-shared" too before adding -pie
for Android

Change-Id: I13e01dc62e5330f3c0c29f954b9624c2175e3000
parent 32d52960
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment