projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
acd0026
)
Define HAVE_AV_CONFIG_H only when building libraries
author
Måns Rullgård
<mans@mansr.com>
Sun, 7 Mar 2010 22:18:33 +0000
(22:18 +0000)
committer
Må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
patch
|
blob
|
history
subdir.mak
patch
|
blob
|
history
diff --git
a/common.mak
b/common.mak
index
d7b54d0
..
b55e921
100644
(file)
--- a/
common.mak
+++ b/
common.mak
@@
-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
diff --git
a/subdir.mak
b/subdir.mak
index
b67288a
..
db0d876
100644
(file)
--- a/
subdir.mak
+++ b/
subdir.mak
@@
-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)