(OS X) Skip intermediate step of compiling master.o (revisited!)
(OS X) Skip intermediate step of compiling master.o (revisited!)

I'm going to quote some mails from Malcolm Wallace on wxhaskel-users in early
2008-02.

First message:
> I'm attempting to install wxHaskell from the darcs repo at
> darcs.haskell.org, under ghc-6.6. on MacOS 10.4.11, with
> wxMac-2.6.4.
>
> The compilation of wxHaskell seems to proceed OK until the link
> stage:
>
>     g++ -r -keep_private_externs -nostdlib -o out/wxc/master.o ....
>
> which failed because there is no -lstdc++-static on my machine.  I
> found the place in the makefile to replace -lstdc++-static with
> the dynamic -lstdc++, and compilation proceeds further, but not
> much:
>
>      g++ -dynamiclib -install_name\
> /usr/local/wxhaskell/lib/libwxc-mac2.6.4-0.10.1.dylib -undefined suppress\
> -flat_namespace -o out/wxc/libwxc-mac2.6.4-0.10.1.dylib out/wxc/master.o\
> -lwx_macu_gl-2.6 -L/usr/local/lib -framework QuickTime -framework IOKit\
> -framework Carbon -framework Cocoa -framework System -lwx_macu_media-2.6\
> -lwx_macu-2.6
>     ld: out/wxc/master.o undefined symbol 12387 (__ZTI10wxListBase) can't be a weak definition
>     /usr/bin/libtool: internal link edit command failed
>
> The offending symbol __ZTI10wxListBase looks like it might be a
> z-encoded symbol from Haskell-land, but I'm not sure how to proceed.

Second message:
> A correct build on MacOS 10.4.11 with ghc-6.6 requires that
> wxWidgets is configured with --enable-shared, and that this patch:
>
>     (OS X) Check architecture to use intermediate step of compiling
>     master.o or not.
>
> be darcs unpulled from your local repo.
>
> With these tweaks, wxHaskell builds, compiles, and runs the demo
> programs.

darcs-hash:20080218225200-db91e-6735a4a806757df9308e8ff4a3d3cd7b51a016ea.gz

Proclivis/wxHaskell,thielema/wxhaskell,thielema/wxhaskell,ekmett/wxHaskell,sherwoodwang/wxHaskell,ekmett/wxHaskell,Proclivis/wxHaskell,sherwoodwang/wxHaskell,Proclivis/wxHaskell,sherwoodwang/wxHaskell,thielema/wxhaskell,Proclivis/wxHaskell,thielema/wxhaskell,ekmett/wxHaskell,sherwoodwang/wxHaskell