Commit 1257d4fa authored by Rafaël Carré's avatar Rafaël Carré Committed by Jean-Paul Saman

Build integer only libflac on arm linux, fix compilation (missing stdio.h)

parent e5b902f5
......@@ -868,9 +868,13 @@ flac-$(FLAC_VERSION).tar.gz:
flac: flac-$(FLAC_VERSION).tar.gz
$(EXTRACT_GZ)
ifdef HAVE_WIN32
patch -p0 < Patches/flac-win32.patch
endif
ifdef HAVE_ARM_LINUX
(cd $@; patch -p 1 < ../Patches/flac-fixed.patch)
endif
FLAC_DISABLE_FLAGS = --disable-oggtest --disable-xmms-plugin --disable-cpplibs
......@@ -885,7 +889,11 @@ else
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) $(FLAC_DISABLE_FLAGS) && cd src && make -C libFLAC && make -C libFLAC install && cd .. && make -C include install)
endif
else
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) $(FLAC_DISABLE_FLAGS) && cd src && make -C libFLAC && make -C libFLAC install && cd .. && make -C include install)
ifdef HAVE_ARM_LINUX
(cd $<; autoconf && $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) $(FLAC_DISABLE_FLAGS) --disable-shared --enable-static CFLAGS=-DFLAC__INTEGER_ONLY_LIBRARY && cd src && make -C libFLAC && make -C libFLAC install && cd .. && make -C include install)
else
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) $(FLAC_DISABLE_FLAGS) && cd src && make -C libFLAC && make -C libFLAC install && cd .. && make -C include install)
endif
endif
endif
$(INSTALL_NAME)
......
diff -ur flac.orig/src/libFLAC/lpc.c flac/src/libFLAC/lpc.c
--- flac.orig/src/libFLAC/lpc.c 2008-07-23 15:56:39.000000000 +0200
+++ flac/src/libFLAC/lpc.c 2008-07-23 15:56:06.000000000 +0200
@@ -38,7 +38,7 @@
#include "FLAC/format.h"
#include "private/bitmath.h"
#include "private/lpc.h"
-#if defined DEBUG || defined FLAC__OVERFLOW_DETECT || defined FLAC__OVERFLOW_DETECT_VERBOSE
+#if defined DEBUG || defined FLAC__OVERFLOW_DETECT || defined FLAC__OVERFLOW_DETECT_VERBOSE || defined FLAC__INTEGER_ONLY_LIBRARY
#include <stdio.h>
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment