[Mplayer-cvslog] CVS: main configure, 1.914, 1.915 Makefile, 1.302, 1.303

Sascha Sommer CVS syncmail at mplayerhq.hu
Sun Sep 26 16:41:01 CEST 2004


CVS change done by Sascha Sommer CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv12138

Modified Files:
	configure Makefile 
Log Message:
--host-cc option for crosscompiling

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.914
retrieving revision 1.915
diff -u -r1.914 -r1.915
--- configure	25 Sep 2004 15:34:40 -0000	1.914
+++ configure	26 Sep 2004 14:40:59 -0000	1.915
@@ -268,6 +268,7 @@
 Miscellaneous options:
   --enable-runtime-cpudetection    Enable runtime CPU detection [disable]
   --cc=COMPILER          use this C compiler to build MPlayer [gcc]
+  --host-cc=COMPILER     use this C compiler to build apps needed for the build process [gcc]
   --as=ASSEMBLER         use this assembler to build MPlayer [as]
   --target=PLATFORM      target platform (i386-linux, arm-linux, etc)
   --enable-static        build a statically linked binary. Set further linking
@@ -366,6 +367,9 @@
   --cc=*)
     _cc=`echo $ac_option | cut -d '=' -f 2`
     ;;
+  --host-cc=*)
+    _host_cc=`echo $ac_option | cut -d '=' -f 2`
+    ;;
   --as=*)
     _as=`echo $ac_option | cut -d '=' -f 2`
     ;;
@@ -630,6 +634,13 @@
 read _answer
 
 fi
+echocheck "host cc"
+if not test "$_host_cc" ; then
+  _host_cc=$_cc
+fi
+echores $_host_cc 
+
+
 # ---
 
 # now that we know what compiler should be used for compilation, try to find
@@ -1349,6 +1360,7 @@
   # Skip 1st pass
   --target=*) ;;
   --cc=*) ;;
+  --host-cc=*) ;;
   --as=*) ;;
   --enable-gcc-checking) ;;
   --disable-gcc-checking) ;;
@@ -6253,6 +6265,7 @@
 LIBDIR = \$(DESTDIR)$_libdir
 #AR = ar
 CC = $_cc
+HOST_CC = $_host_cc
 AWK = $_awk
 RANLIB = $_ranlib
 INSTALL = $_install

Index: Makefile
===================================================================
RCS file: /cvsroot/mplayer/main/Makefile,v
retrieving revision 1.302
retrieving revision 1.303
diff -u -r1.302 -r1.303
--- Makefile	21 Sep 2004 19:47:20 -0000	1.302
+++ Makefile	26 Sep 2004 14:40:59 -0000	1.303
@@ -245,7 +245,7 @@
 $(MENCODER_DEP): version.h
 
 $(PRG_CFG): version.h codec-cfg.c codec-cfg.h
-	$(CC) $(CFLAGS) -g codec-cfg.c mp_msg.c -o $(PRG_CFG) -DCODECS2HTML $(EXTRA_LIB) $(I18NLIBS)
+	$(HOST_CC) $(CFLAGS) -g codec-cfg.c mp_msg.c -o $(PRG_CFG) -DCODECS2HTML $(EXTRA_LIB) $(I18NLIBS)
 
 install: $(ALL_PRG)
 ifeq ($(VIDIX),yes)




More information about the MPlayer-cvslog mailing list