Fix up logic to decide whether shared libs are being built or not
[ghc-hetmet.git] / mk / build.mk.sample
index 5b61d16..b43ef94 100644 (file)
@@ -40,6 +40,10 @@ GhcHcOpts       = -Rghc-timing
 GhcLibHcOpts    = -O2 -XGenerics
 GhcLibWays     += p
 
+ifeq "$(PlatformSupportsSharedLibs)" "YES"
+GhcLibWays += dyn
+endif
+
 endif
 
 # -------- A Fast build ------------------------------------------------------