Call windres with explicit preprocessor path in case gcc is not in $PATH
authorClemens Fruhwirth <clemens@endorphin.org>
Mon, 6 Aug 2007 08:51:20 +0000 (08:51 +0000)
committerClemens Fruhwirth <clemens@endorphin.org>
Mon, 6 Aug 2007 08:51:20 +0000 (08:51 +0000)
mk/suffix.mk

index d36c0b3..762636a 100644 (file)
@@ -378,7 +378,7 @@ endif
 
 %.$(way_)o : %.$(way_)rc
        @$(RM) $@
 
 %.$(way_)o : %.$(way_)rc
        @$(RM) $@
-       windres $< $@
+       windres --preprocessor="$(CPP) -xc -DRC_INVOKED" $< $@
 
 #-----------------------------------------------------------------------------
 # Preprocessor suffix rule
 
 #-----------------------------------------------------------------------------
 # Preprocessor suffix rule