Commit 68496a51 authored by Christophe Mutricy's avatar Christophe Mutricy
Browse files

Add detection of ranlib and ar when crosscompiling. It's not fixing the linking problem :(

parent e8d275ba
......@@ -631,8 +631,11 @@ flac-$(FLAC_VERSION).tar.gz:
flac: flac-$(FLAC_VERSION).tar.gz
$(EXTRACT_GZ)
ifneq ($(HOST),$(BUILD))
(patch -p 0 < Patches/flac-cross.patch && cd $@ && autoconf)
endif
.FLAC: flac .ogg
.FLAC: flac
(cd $<; ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-oggtest && cd src&& make -C libFLAC&& make -C libFLAC install && cd .. && make -C include install)
# (cd $<; ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-oggtest && cd src&& make -C libFLAC&& make -C libFLAC install && make -C libOggFLAC &&make -C libOggFLAC install && cd .. && make -C include install)
$(INSTALL_NAME)
......
--- flac-orig/configure.in 2005-11-01 19:00:02.381241515 +0100
+++ flac/configure.in 2005-11-01 19:01:50.034829963 +0100
@@ -36,6 +36,12 @@
AC_PROG_CXX
AC_PROG_MAKE_SET
+dnl Find the right ranlib, even when cross-compiling
+AC_CHECK_TOOL(RANLIB, ranlib, :)
+AC_CHECK_TOOL(STRIP, strip, :)
+AC_CHECK_TOOL(AR, ar, :)
+AC_CHECK_TOOL(LD, ld, :)
+
AC_CHECK_TYPES(socklen_t, [], [])
dnl check for getopt in standard library
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