• Niklas Hambuechen's avatar
    Fix compiler invocation for GHC >= 7.8 · 083776b9
    Niklas Hambuechen authored
    
    
    GHC 7.8 switched to dynamic linking being used for ghci, which requires
    that .so file are being built for modules that are loaded for TH.
    
    For this reason, GHC >= 7.8 has a -dynamic-too flag, which we now use.
    
    However, -dynamic-too must not be enabled for profiling builds,
    which is why this commit introduces a HFLAGS_NOPROF variable
    (currently only containing -dynamic-too) that must be passed to
    all GHC invocations that are not creating profiling output.
    Signed-off-by: default avatarNiklas Hambuechen <niklash@google.com>
    Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
    083776b9
Makefile.am 84.8 KB