@@ -10,13 +10,16 @@ COMMENT = FFmpeg is a complete, cross-platform solution to record, convert and
1010LICENSE = GPLv2
1111
1212CONFIGURE_ARGS = --target-os=linux --cross-prefix=$(TC_PATH )$(TC_PREFIX ) --prefix=$(INSTALL_PREFIX )
13- CONFIGURE_ARGS += --extra-cflags="-I$(WORK_DIR ) /install$(INSTALL_PREFIX ) /include"
14- CONFIGURE_ARGS += --extra-ldflags="-L$(WORK_DIR ) /install$(INSTALL_PREFIX ) /lib"
15- CONFIGURE_ARGS += --extra-libs="-lxml2 -ldl -lm" --pkg-config=/usr/bin/pkg-config --ranlib=$(RANLIB )
13+ # no own pkg-config in toolchain:
14+ CONFIGURE_ARGS += --pkg-config=/usr/bin/pkg-config
1615CONFIGURE_ARGS += --enable-cross-compile --enable-rpath --enable-pic
1716CONFIGURE_ARGS += --enable-shared
1817CONFIGURE_ARGS += --enable-gpl --enable-version3
19- CONFIGURE_ARGS += --disable-debug
18+ ifeq ($(strip $(GCC_DEBUG_INFO ) ) ,1)
19+ CONFIGURE_ARGS += --enable-debug=3 --disable-stripping --disable-optimizations --assert-level=2 --enable-ftrapv
20+ else
21+ CONFIGURE_ARGS += --disable-debug --enable-stripping
22+ endif
2023CONFIGURE_ARGS += --disable-static
2124CONFIGURE_ARGS += --disable-doc
2225
@@ -214,7 +217,7 @@ endif
214217
215218ifeq ($(findstring $(ARCH ) ,$(ARMv7_ARCHS ) $(ARMv7L_ARCHS ) ) ,$(ARCH ) )
216219CONFIGURE_ARGS += --arch=arm --enable-neon --enable-thumb --disable-armv6 --disable-armv6t2 --disable-vfp --disable-armv5te
217- ifneq ($(findstring $( ARCH ) , alpine) ,$(ARCH ) )
220+ ifeq ($(findstring alpine,$(ARCH ) ) ,alpine )
218221CONFIGURE_ARGS += --extra-cflags=-DSYNO_ALPINE_NEON
219222endif
220223endif
0 commit comments