dyn is not in $(GhcLibWays), but $(DYNAMIC_GHC_PROGRAMS) is YES.