I have an executable build via ghc which I know is statically compiled. I want to find if it's statically linked via glibc or musl based (Mostly because glibc based static linking is discouraged: [Why is statically linking glibc discouraged?](https://stackoverflow.com/questions/57476533/why-is-statically-linking-glibc-discouraged) )

I would be also interested in an answer to see if there a **non Haskell based solution** which is applicable to any executable (basically executable which doesn't ship with Haskell's RTS).