# Flags for compiling every file
# We like plenty of warnings.
-WARNING_OPTS += -Wall -Wextra
+WARNING_OPTS += -Wall
+ifeq "$(GccLT34)" "YES"
+WARNING_OPTS += -W
+else
+WARNING_OPTS += -Wextra
+endif
WARNING_OPTS += -Wstrict-prototypes
WARNING_OPTS += -Wmissing-prototypes
WARNING_OPTS += -Wmissing-declarations
# inlining warnings happen in Compact
sm/Compact_CC_OPTS += -Wno-inline
+# emits warnings about call-clobbered registers on x86_64
+StgCRun_CC_OPTS += -w
+
RetainerProfile_CC_OPTS += -w
RetainerSet_CC_OPTS += -Wno-format
# On Windows:
.PHONY: install_rts
install_rts:
- $(INSTALL_DIR) $(DESTDIR)$(libdir)
- $(INSTALL_DIR) $(DESTDIR)$(libdir)/include
- "$(CP)" $(ALL_RTS_LIBS) $(DESTDIR)$(libdir)
+ $(INSTALL_DIR) $(DESTDIR)$(ghclibdir)
+ $(INSTALL_DIR) $(DESTDIR)$(ghclibdir)/include
+ "$(CP)" $(ALL_RTS_LIBS) $(DESTDIR)$(ghclibdir)
# -----------------------------------------------------------------------------
# cleaning