diff options
author | Rick Kern <kernrj@gmail.com> | 2016-06-23 18:57:07 -0400 |
---|---|---|
committer | Rick Kern <kernrj@gmail.com> | 2016-06-24 21:59:43 -0400 |
commit | 8db203a9dd73072da3e8e131209362317c70ade0 (patch) | |
tree | 6dd18af30bee5d2e364a694c47d4b49beb098677 | |
parent | 311a953c76081fca99b872629d248f9d69ebc0c3 (diff) | |
download | ffmpeg-8db203a9dd73072da3e8e131209362317c70ade0.tar.gz |
lavd/decklink: Fix compile issue on OS X
Fixes #4124: Invalid argument '-std=c99' not allowed with 'C++/ObjC++'
C++ files fail to compile. This adds '-std=c++11' to CXX_FLAGS to fix.
Signed-off-by: Rick Kern <kernrj@gmail.com>
-rw-r--r-- | common.mak | 2 | ||||
-rwxr-xr-x | configure | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/common.mak b/common.mak index 59b039fa67..3f2096d230 100644 --- a/common.mak +++ b/common.mak @@ -39,7 +39,7 @@ CCFLAGS = $(CPPFLAGS) $(CFLAGS) OBJCFLAGS += $(EOBJCFLAGS) OBJCCFLAGS = $(CPPFLAGS) $(CFLAGS) $(OBJCFLAGS) ASFLAGS := $(CPPFLAGS) $(ASFLAGS) -CXXFLAGS += $(CPPFLAGS) $(CFLAGS) +CXXFLAGS := $(CPPFLAGS) $(CFLAGS) $(CXXFLAGS) YASMFLAGS += $(IFLAGS:%=%/) -Pconfig.asm HOSTCCFLAGS = $(IFLAGS) $(HOSTCPPFLAGS) $(HOSTCFLAGS) @@ -4519,6 +4519,7 @@ fi add_cppflags -D_ISOC99_SOURCE add_cxxflags -D__STDC_CONSTANT_MACROS +add_cxxflags -std=c++11 check_cflags -std=c99 check_cc -D_FILE_OFFSET_BITS=64 <<EOF && add_cppflags -D_FILE_OFFSET_BITS=64 #include <stdlib.h> |