Do not pass -pie flag to linker if -shared specified. This matches
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 17 Jan 2013 20:17:16 +0000 (20:17 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 17 Jan 2013 20:17:16 +0000 (20:17 +0000)
commit24c67c6a63d67615748944fea9c8caf7bb891241
tree1678aff136350ef91447ac4a6b8b2925e0f91787
parent5724ee9765dd0aa584a767be610f4938b7b685a6
Do not pass -pie flag to linker if -shared specified.  This matches
the gcc driver and makes it possible to add -pie to $CC or similar and
have it apply in the right places.

llvm-svn: 172753
clang/lib/Driver/Tools.cpp
clang/test/Driver/pic.c