Include LD_OPTS when building the RTS shared libs
Include LD_OPTS when building the RTS shared libs

(cherry picked from commit ec3e949e29990c054850f621e14a9d77e3197aee)

lukexi/ghc-7.8-arm64,hferreiro/replay,hferreiro/replay,lukexi/ghc-7.8-arm64,hferreiro/replay,hferreiro/replay,lukexi/ghc-7.8-arm64,hferreiro/replay,hferreiro/replay,lukexi/ghc-7.8-arm64,hferreiro/replay,lukexi/ghc-7.8-arm64