Replace GhcLibToolsHcOpts with FptoolsHcOpts, and make it apply to all
programs in fptools, not just the hslibs tools. Now there's a way of
controlling compiler flags to all programs in the tree, so
a) by default all utilities should be optimised (before this was only done
for one or two like hsc2hs)
b) if you're doing development work, you can get everything built quicker by
setting FptoolsHcOpts appropriately
# hslibs for GHC also uses the following variables (defined above):
# GhcLibWays, GhcLibHcOpts, GhcLibToolsHcOpts, DLLized, StripLibraries
-# Haskell compiler options for tools in hslibs
-GhcLibToolsHcOpts=-O
+# Haskell compiler options for tools in fptools
+FptoolsHcOpts=-O
# Build the Haskell Readline bindings?
#
SRC_HC_OPTS += $(patsubst %, -package %, $(PACKAGE_DEPS))
ifneq "$(PACKAGE)" ""
SRC_HC_OPTS += -package-name $(PACKAGE)
+else
+# No library, we are actually building the tools
+SRC_HC_OPTS += $(FptoolsHcOpts)
endif
#----------------------------------------