[project @ 2005-09-18 07:09:50 by wolfgang]
authorwolfgang <unknown>
Sun, 18 Sep 2005 07:09:50 +0000 (07:09 +0000)
committerwolfgang <unknown>
Sun, 18 Sep 2005 07:09:50 +0000 (07:09 +0000)
commit43a54051c0ce590206261b06a1257ad0299a6228
treed262321dc91d1941452db4d19c436782d241c95c
parent0546faf2e57f78739e6a00a61dd6ba034289cf82
[project @ 2005-09-18 07:09:50 by wolfgang]
A hack to make -dynamic work again:
when a library listed in extraLibraries ends with "_cbits", append "_dyn"
when -dynamic is passed, i.e. extraLibraries = ["foo", "HSbase_cbits"]
loads -lfoo and -lHSbase_cbits in the static case, but -lfoo and
-lHSbase_cbits_dyn in the -dynamic case.

It's an ugly hack, but it affects only the case when -dynamic is passed,
which would not work otherwise right now, so let's

MERGE TO STABLE
ghc/compiler/main/Packages.lhs