Skip to content
  • Ben Gamari's avatar
    Drop duplicate -optl's from GHC invocations · 9c7dde7f
    Ben Gamari authored
    Previously the make build system would pass things like
    `-optl-optl-Wl,-x -optl-optl-Wl,noexecstack` to GHC. This would
    naturally result in mass confusion as GHC would pass `-optl-Wl,-x` to
    GCC. GCC would in turn interpret this as `-o ptl-Wl,-x`, setting the
    output pass of the invocation.
    
    The problem that `-optl` was added to the command-line in two places in
    the build system. Fix this.
    
    Fixes #17385.
    
    (cherry picked from commit 2d12d59e)
    9c7dde7f