From 9164c0897951f7795e85bc95b1a1eaaf95a16482 Mon Sep 17 00:00:00 2001 From: Pranav Rajpal <78008260+pranavrajpal@users.noreply.github.com> Date: Fri, 16 Apr 2021 22:17:19 -0700 Subject: [PATCH] Define _GF_CONFIG_H_ to fix Linux build failing gpac/configuration.h has a series of default configuration options for various platforms, but it doesn't have a case for Linux and it results in a compilation error if it encounters an unknown platform. The settings in configuration.h don't appear to try to set any defaults for Linux anyway, so we can disable all use of those configuration.h settings by defining _GF_CONFIG_H_. --- linux/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/Makefile.am b/linux/Makefile.am index 8938cdf6..58fccac6 100644 --- a/linux/Makefile.am +++ b/linux/Makefile.am @@ -321,7 +321,7 @@ ccextractor_CPPFLAGS =-I../src/lib_ccx/ -I../src/thirdparty/gpacmp4/ -I../src/th ccextractor_LDADD=-lm if SYS_IS_LINUX -ccextractor_CFLAGS += -O3 -s -DGPAC_CONFIG_LINUX +ccextractor_CFLAGS += -O3 -s -DGPAC_CONFIG_LINUX -D_GF_CONFIG_H_ endif if SYS_IS_MAC