提交 72c2bdeb 编写于 作者: M Måns Rullgård

Define HAVE_AV_CONFIG_H only when building libraries

Originally committed as revision 22294 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 acd0026c
...@@ -31,7 +31,7 @@ endif ...@@ -31,7 +31,7 @@ endif
ALLFFLIBS = avcodec avdevice avfilter avformat avutil postproc swscale ALLFFLIBS = avcodec avdevice avfilter avformat avutil postproc swscale
CPPFLAGS := -DHAVE_AV_CONFIG_H -I$(BUILD_ROOT_REL) -I$(SRC_PATH) $(CPPFLAGS) CPPFLAGS := -I$(BUILD_ROOT_REL) -I$(SRC_PATH) $(CPPFLAGS)
CFLAGS += $(ECFLAGS) CFLAGS += $(ECFLAGS)
%.o: %.c %.o: %.c
......
...@@ -5,6 +5,8 @@ include $(SUBDIR)../common.mak ...@@ -5,6 +5,8 @@ include $(SUBDIR)../common.mak
LIBVERSION := $(lib$(NAME)_VERSION) LIBVERSION := $(lib$(NAME)_VERSION)
LIBMAJOR := $(lib$(NAME)_VERSION_MAJOR) LIBMAJOR := $(lib$(NAME)_VERSION_MAJOR)
$(OBJS): CPPFLAGS += -DHAVE_AV_CONFIG_H
ifdef CONFIG_STATIC ifdef CONFIG_STATIC
all: $(SUBDIR)$(LIBNAME) all: $(SUBDIR)$(LIBNAME)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册