Fix SPARC build, missing #include
[ghc-hetmet.git] / mk / suffix.mk
index d36c0b3..762636a 100644 (file)
@@ -378,7 +378,7 @@ endif
 
 %.$(way_)o : %.$(way_)rc
        @$(RM) $@
-       windres $< $@
+       windres --preprocessor="$(CPP) -xc -DRC_INVOKED" $< $@
 
 #-----------------------------------------------------------------------------
 # Preprocessor suffix rule