http://bugs.winehq.org/show_bug.cgi?id=28028
--- Comment #2 from Per Johansson per@morth.org 2011-08-08 17:59:33 CDT --- I was testing with the current trunk (8c00ee0beff1a9a6be08f32d821186c798d15b9d), doing git clean -x etc. before thinking to check the macports Portfile.
Seems I was wrong about LDFLAGS. I was confused by a problem with my XQuartz server, and it works now that I've restarted it, sorry. But still have to set CC, or it's no go. For completeness, here's my gcc -v output (Xcode 4.1 which is the current version):
: [Falken ~/Unix/src/wine] 000; gcc -v Using built-in specs. Target: i686-apple-darwin11 Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00) : [Falken ~/Unix/src/wine] 000; clang -v Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn) Target: x86_64-apple-darwin11.0.0 Thread model: posix : [Falken ~/Unix/src/wine] 000; gcc-4.2 -v Using built-in specs. Target: i686-apple-darwin11 Configured with: /private/var/tmp/gcc/gcc-5666.3~278/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)