Commit 07371730 authored by Damien Fouilleul's avatar Damien Fouilleul

Makefile: fix cross compiling broken by my previous commit

parent 94762fed
......@@ -82,20 +82,24 @@ else
HOSTCC2=$(HOSTCC)
endif
# For ffmpeg if not cross compiling
ifneq ($(CC),)
FFMPEGCONF=--cc="$(CC)"
endif
#
# compiling for MinGW under Cygwin could be detected as cross compiling
# unfortunately there isn't a complete separate GCC toolchain for MinGW under cygwin
# cross compiling
#
ifeq (,$(findstring cygwin,$(BUILD)),)
ifneq ($(BUILD),$(HOST))
# We are cross compiling
ifneq ($(BUILD),$(HOST))
#
# Compiling for MinGW under Cygwin could be deemed as cross compiling
# unfortunately there isn't a complete separate GCC toolchain for MinGW under Cygwin
#
HOSTCONF=--host=$(HOST) --build=$(BUILD)
FFMPEGCONF=--cross-prefix=$(HOST)-
X264CONF=--crosscompile=$(HOST)
else
ifneq ($(CC),)
FFMPEGCONF=--cc="$(CC)"
endif
ifeq ($(findstring cygwin,$(BUILD)),)
# We are REALLY cross compiling
FFMPEGCONF=--cross-prefix=$(HOST)-
X264CONF=--crosscompile=$(HOST)
endif
endif
......@@ -1506,8 +1510,7 @@ libgpg-error: libgpg-error-$(GPGERROR_VERSION).tar.gz
ifeq ($(HOST),i686-apple-darwin8)
(cd $<; ./autogen.sh)
endif
# MinGW host is not properly detected when building on cygwin
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --host=$(HOST) --prefix=$(PREFIX) --disable-nls --disable-shared && make && make install)
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-nls --disable-shared && make && make install)
# $(INSTALL_NAME)
touch $@
......
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