While not strictly necessary generally, when passing in linker args to ghc
to compile the c rts invokes some ffi calls that the shared library
alone doesn't suffice.
Note, while the other testsuites run fine, they're very long running.
fast ~ 10 min
normal ~45 min
long ~over an hour
This is on a skylake i7, so results may vary. So for now only run the
fast test suite.
While here ensure that strip --strip-unneeded is called on all
shared libraries and static archives. This reduces the overall
install sizes a skosh.
The larger win here, is stripping out the profiled debugging libraries
from the default ghc package. If someone wanted to debug now
they will need to install ghc-dev to get that RTS and debug libraries.
Realistically this only affects those users that are building
packages that need to debug. As well as future enhancements
to the ghc/haskell which will build packages with profiled libraries
as well. But this compromise for the overall install size
is preferable to users installing libraries they likely won't
need/use and overal bandwidth that consumes.
Since we install via make install DESTDIR=... we need to regenerate the
ghc pkg db at post install time.
[TT: flatten commits]