mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
Define HAVE_AV_CONFIG_H only when building libraries
Originally committed as revision 22294 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
acd0026c0b
commit
72c2bdebcf
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue