diff --git a/common.mak b/common.mak index d4eda1b4f2..8c2b375d40 100644 --- a/common.mak +++ b/common.mak @@ -33,9 +33,12 @@ endif ALLFFLIBS = avcodec avdevice avfilter avformat avutil postproc swscale -CPPFLAGS := -I$(BUILD_ROOT_REL) -I$(SRC_PATH) $(CPPFLAGS) +IFLAGS := -I$(BUILD_ROOT_REL) -I$(SRC_PATH) +CPPFLAGS := $(IFLAGS) $(CPPFLAGS) CFLAGS += $(ECFLAGS) +HOSTCFLAGS += $(IFLAGS) + %.o: %.c $(CCDEP) $(CC) $(CPPFLAGS) $(CFLAGS) $(CC_DEPFLAGS) -c $(CC_O) $<