libtool adds all sorts of wonderful flags to gcc, whose purpose is unclear. Nonetheless, the following works on gcc-4.2.1 but fails on gcc version 4.3.0 20071012 (experimental) (GCC) on the same box, a Mac Pro running OS X 10.4:
g++ -m64 -dynamiclib -single_module ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/libgeometry.0.0.0.dylib .libs/libgeometry_la-predicates.o .libs/libgeometry_la-geometry-init.o -install_name /usr/local/lib/libgeometry.0.dylib -Wl,-compatibility_version -Wl,1 -Wl,-current_version -Wl,1.0 Reports: /usr/bin/ld: unknown flag: -compatibility_version That error is not there with gcc-4.2.1. The impact is that I can't compile libraries using libtool and the latest gcc-4.3 snapshot. -- Summary: gcc-4.3 mishandles -compatibility_version on OS X Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: benoit dot hudson at gmail dot com GCC target triplet: i386-apple-darwin8.10.2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33851