• Moritz Angermann's avatar
    Allow building static libs. · 8c1ceddd
    Moritz Angermann authored
    Summary:
    Commit 90538d86, seems to have broken static linking.
    The introduction of `argFixup` in `runLink` rearranges libs, and considers
    anything with an `-l` prefix or `.a` suffix a lib, which fails for libs that are
    just being linked together (e.g. `-o lib.a`).
    
    The proposed solution explicitly checks for the existance of the `-o` flag.
    
    Reviewers: rwbarton, erikd, Phyx, bgamari, austin
    
    Reviewed By: Phyx
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2362
    8c1ceddd
SysTools.hs 71.6 KB