Gentoo Archives: gentoo-alt

From: Logan Bowers <logan@×××××××××××.com>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] Mono on OS X
Date: Sun, 19 Sep 2010 22:57:42
Message-Id: 403AA40E-73A5-48D0-BEE5-0C903C6941BA@datacurrent.com
1 I'm trying to get mono 2.6.7 building on my OS X machine, and configure fails with the following relevant snippet:
2
3 configure:3790: i686-apple-darwin10-gcc -O2 -pipe -march=prescott -fno-strict-aliasing -arch i386 -D_XOPEN_SOURCE -mmacosx
4 -version-min=10.5 -no-cpp-precomp -D_THREAD_SAFE -DGC_MACOSX_THREADS -DPLATFORM_MACOSX -DUSE_MMAP -DUSE_MUNMAP -DGetCurren
5 tProcess=MonoGetCurrentProcess -DGetCurrentThread=MonoGetCurrentThread -DCreateEvent=MonoCreateEvent -arch i386 -D_XOPEN_SO
6 URCE -mmacosx-version-min=10.5 -Wl,-dead_strip_dylibs -pthread conftest.c >&5
7 cc1: error: unrecognized command line option "-arch"
8 cc1: error: unrecognized command line option "-arch"
9
10 It looks like they're setting some flags in the 'configure' script if the host is darwin:
11
12 case "$host" in
13 i*86-*-darwin10*)
14 BROKEN_DARWIN_FLAGS="-arch i386 -D_XOPEN_SOURCE -mmacosx-version-min=10.5"
15 CPPFLAGS="$CPPFLAGS $BROKEN_DARWIN_FLAGS"
16 CFLAGS="$CFLAGS $BROKEN_DARWIN_FLAGS"
17 CXXFLAGS="$CXXFLAGS $BROKEN_DARWIN_FLAGS"
18 CCASFLAGS="$CCASFLAGS $BROKEN_DARWIN_FLAGS"
19 CPPFLAGS_FOR_LIBGC="$CPPFLAGS_FOR_LIBGC $BROKEN_DARWIN_FLAGS"
20 CFLAGS_FOR_LIBGC="$CFLAGS_FOR_LIBGC $BROKEN_DARWIN_FLAGS"
21 CPPFLAGS_FOR_EGLIB="$CPPFLAGS_FOR_EGLIB $BROKEN_DARWIN_FLAGS"
22 CFLAGS_FOR_EGLIB="$CFLAGS_FOR_EGLIB $BROKEN_DARWIN_FLAGS"
23 ;;
24 esac
25
26 If I remove '-arch i386' , the ebuild compiles properly. It appears to be an arg unique to Apple's version of gcc (?).
27
28 So what's teh best way to fix and submit this? I can make a patch file that the ebuild applies and post a diff. Is there a better way to get the change into the tree? Thanks!
29
30 Logan Bowers

Replies

Subject Author
Re: [gentoo-alt] Mono on OS X Fabian Groffen <grobian@g.o>