Skip to content
  • Cheng Shao's avatar
    dcd550ab
    hadrian: fix CFLAGS for gmp shared objs on wasm · dcd550ab
    Cheng Shao authored and Zubin's avatar Zubin committed
    This commit adds -fvisibility=default to CFLAGS of gmp when building
    for wasm. This is required to generate the ghc-bignum shared library
    without linking errors. Clang defaults to -fvisibility=hidden for wasm
    targets, which will cause issues when a symbol is expected to be
    exported in a shared library but without explicit visibility attribute
    annotation.
    
    (cherry picked from commit c247f2ee)
    (cherry picked from commit 18e53833)
    dcd550ab
    hadrian: fix CFLAGS for gmp shared objs on wasm
    Cheng Shao authored and Zubin's avatar Zubin committed
    This commit adds -fvisibility=default to CFLAGS of gmp when building
    for wasm. This is required to generate the ghc-bignum shared library
    without linking errors. Clang defaults to -fvisibility=hidden for wasm
    targets, which will cause issues when a symbol is expected to be
    exported in a shared library but without explicit visibility attribute
    annotation.
    
    (cherry picked from commit c247f2ee)
    (cherry picked from commit 18e53833)
Loading