The glib-1.2.10-r5 ebuild doesn't produce shared libraries on macos, because the ltconfig that's included in the glib-1.2.10.tar.gz tarball is version 1.3.4 and doesn't know about the "darwin" operating system type, so it defaults to ld_shlibs=no. http://fink.sourceforge.net/files/ltconfig and http://fink.sourceforge.net/files/ltmain.sh do know about the darwin OS. When I replace the default ltconfig and ltmain.sh in the glib package with these, it compiles just fine *with* shared libraries, and everything's peachy. What I did was download those two files to my home directory, then add the following three lines to my glib-1.2.10-r5 ebuild, right before the end of src_unpack(): ewarn Replacing ltconfig and ltmain.sh with fink versions... cp /Users/rmunn/ltconfig ${S} cp /Users/rmunn/ltmain.sh ${S} Obviously something more generic would need to go into the official ebuild. Reproducible: Always Steps to Reproduce: 1. ACCEPT_KEYWORDS="~macos" emerge -av =dev-libs/glib-1.2.10-r5 2. 3. Actual Results: glib compiled and installed, but only with static libraries. Expected Results: Both static and shared libraries should have installed. The fix I describe above does indeed do this. !!! Using `which gcc` to gcc locate version, this may break !!! DISTCC, installing gcc-config and setting your current gcc !!! profile will fix this Portage 20040726 (default-macos-10.3, gcc-3.3, unavailable, 7.5.0 Power Macintosh powerpc) ================================================================= System uname: 7.5.0 Power Macintosh powerpc macos-20040726 distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] Autoconf: Automake: Binutils: ACCEPT_KEYWORDS="macos" AUTOCLEAN="yes" CFLAGS="-O2 -pipe" CHOST="powerpc-apple-darwin" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="collision-protect cvs keepwork" GENTOO_MIRRORS="http://gentoo.osuosl.org/" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="macos apache2 jpeg"
up to osx to suggest an acceptable fix.
How about putting ltmain.sh and ltconfig ('s diff) to ${PORTDIR}/eclass/ELT-patches/darwin and apply them if shared libraries are not created? (This is similar to what Fink, yet another Mac OS X package management system does)
Depending on Gentoo/MacOS design issue: 65272
Fixed in CVS.
there should be darwintoolize in the ebuild...
Closing out bugs that've been resolved for a while now...