OSDN Git Service

common.mak: Less ugly version of the previous windres fix
authorJames Almer <jamrial@gmail.com>
Mon, 9 Dec 2013 01:44:52 +0000 (22:44 -0300)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 9 Dec 2013 01:47:55 +0000 (02:47 +0100)
Using subst here is a really ugly hack

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
common.mak
configure

index 48f5c21..50469a1 100644 (file)
@@ -61,7 +61,7 @@ COMPILE_HOSTC = $(call COMPILE,HOSTCC)
        $(COMPILE_HOSTC)
 
 %.o: %.rc
-       $(WINDRES) $(IFLAGS) --preprocessor "$(subst @,,$(DEPCC)) -E -xc-header -DRC_INVOKED $(CC_DEPFLAGS)" -o $@ $<
+       $(WINDRES) $(IFLAGS) --preprocessor "$(DEPWINDRES) -E -xc-header -DRC_INVOKED $(CC_DEPFLAGS)" -o $@ $<
 
 %.i: %.c
        $(CC) $(CCFLAGS) $(CC_E) $<
index ed22954..4eefa64 100755 (executable)
--- a/configure
+++ b/configure
@@ -4911,6 +4911,7 @@ LD_LIB=$LD_LIB
 LD_PATH=$LD_PATH
 DLLTOOL=$dlltool
 WINDRES=$windres
+DEPWINDRES=$dep_cc
 LDFLAGS=$LDFLAGS
 SHFLAGS=$(echo $($ldflags_filter $SHFLAGS))
 ASMSTRIPFLAGS=$ASMSTRIPFLAGS