mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-23 15:53:08 +00:00
examples/Makefile: give priority to pkg-config flags
In case CFLAGS/LDLIBS are already defined and conflicting with the pkg-config flags, give priority to the latter since they are used to detect compilation flags. This should fix for example the case where there are many different instances of a library, CFLAGS=-I/foo/include and pkg-config cflags say -I/bar/include.
This commit is contained in:
parent
6fc892d271
commit
e53becc70f
@ -8,8 +8,8 @@ FFMPEG_LIBS= libavdevice \
|
||||
libavutil \
|
||||
|
||||
CFLAGS += -Wall -O2 -g
|
||||
CFLAGS += $(shell pkg-config --cflags $(FFMPEG_LIBS))
|
||||
LDLIBS += $(shell pkg-config --libs $(FFMPEG_LIBS))
|
||||
CFLAGS := $(shell pkg-config --cflags $(FFMPEG_LIBS)) $(CFLAGS)
|
||||
LDLIBS := $(shell pkg-config --libs $(FFMPEG_LIBS)) $(LDLIBS)
|
||||
|
||||
EXAMPLES= decoding_encoding \
|
||||
filtering_video \
|
||||
|
Loading…
Reference in New Issue
Block a user