driver: pass '-fPIC' option to assembler as well
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 27 Aug 2014 19:19:52 +0000 (22:19 +0300)
committerSergei Trofimovich <slyfox@gentoo.org>
Wed, 27 Aug 2014 19:19:52 +0000 (22:19 +0300)
commita93ab43ab5f40cadbedea2f6342b93c245e91434
tree66a5987e2a4b33a145d74c662666e5a6c9ed91eb
parent43f1b2ecd1960fa7377cf55a2b97c66059a701ef
driver: pass '-fPIC' option to assembler as well

Summary:
Before the patch '-fPIC' was passed only to C compiler,
but not to assembler itself.

It led to runtime crash in GHC_DYNAMIC_PROGRAMS=YES mode
on sparc32.

Technical details are in 'Note [-fPIC for assembler]'.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Test Plan: validate on sparc

Reviewers: simonmar, austin, kgardas

Reviewed By: austin

Subscribers: simonmar, ezyang, carter

Differential Revision: https://phabricator.haskell.org/D177
compiler/main/DriverPipeline.hs