OSDN Git Service

Define HAVE_AV_CONFIG_H only when building libraries
authorMåns Rullgård <mans@mansr.com>
Sun, 7 Mar 2010 22:18:33 +0000 (22:18 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 7 Mar 2010 22:18:33 +0000 (22:18 +0000)
Originally committed as revision 22294 to svn://svn.ffmpeg.org/ffmpeg/trunk

common.mak
subdir.mak

index d7b54d0..b55e921 100644 (file)
@@ -31,7 +31,7 @@ endif
 
 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)
 
 %.o: %.c
index b67288a..db0d876 100644 (file)
@@ -5,6 +5,8 @@ include $(SUBDIR)../common.mak
 LIBVERSION := $(lib$(NAME)_VERSION)
 LIBMAJOR   := $(lib$(NAME)_VERSION_MAJOR)
 
+$(OBJS): CPPFLAGS += -DHAVE_AV_CONFIG_H
+
 ifdef CONFIG_STATIC
 all: $(SUBDIR)$(LIBNAME)