Skip to content
  • Ben Gamari's avatar
    Pass -no-pie to GCC · bae4a55b
    Ben Gamari authored and Ben Gamari's avatar Ben Gamari committed
    Certain distributions (e.g. Debian and Ubuntu) have enabled PIE be
    default in their GCC packaging. This breaks our abuse of GCC as a linker
    which requires that we pass -Wl,-r, which is incompatible with
    PIE (since the former implies that we are generating a relocatable
    object file and the latter an executable).
    
    Test Plan: Validate
    
    Reviewers: hvr, austin
    
    Subscribers: rwbarton, thomie, erikd
    
    Differential Revision: https://phabricator.haskell.org/D2691
    
    GHC Trac Issues: #12759
    bae4a55b