[MPlayer-dev-eng] [PATCH] properly check for i386 vs. x86_64
Andrew Wason
rectalogic at rectalogic.com
Fri Sep 25 18:37:05 CEST 2009
On Thu, Sep 24, 2009 at 5:19 AM, Reimar Döffinger
<Reimar.Doeffinger at gmx.de> wrote:
> Uh, yeah, sorry I forgot to say "applied".
> Hopefully MPlayer is now close to compiling on OSX 10.6 out-of-the-box
Hmm, this is overriding the $host_arch derived from --target
I'm compiling with runtime cpu detection and was specifying --target
to get a host_arch that had SSE enabled so the proper -march is passed
to gcc.
This is on MacOS 10.6 and forcing 32 bit:
configure --enable-runtime-cpudetection --extra-cflags=-m32
--extra-ldflags=-m32 --target=pentium_m-Darwin
This now fails to compile input/ar.c because __SSE__ is not defined
since -march=i386 is being used.
Attached patch avoids resetting host_arch if target was specified.
Andrew
-------------- next part --------------
Index: configure
===================================================================
--- configure (revision 29714)
+++ configure (working copy)
@@ -1520,7 +1520,7 @@
echo >> "$TMPLOG"
-if x86 ; then
+if test -z "$_target" && x86 ; then
cat > $TMPC << EOF
int main(void) {
int test[sizeof(char *)-7];
More information about the MPlayer-dev-eng
mailing list