--- drscheme-360-r1.ebuild.orig 2006-12-02 13:20:58.000000000 +0100 +++ drscheme-360-r1.ebuild 2006-12-02 15:40:14.000000000 +0100 @@ -45,11 +45,6 @@ } src_compile() { - # needed because drschme uses it's own linker that passes LDFLAGS directly - # to the linker, rather than passing it through gcc - LDFLAGS="${LDFLAGS//-Wl/}" - LDFLAGS="${LDFLAGS//,/ }" - # -O3 seems to cause some miscompiles, this should fix #141925 and #133888 replace-flags -O? -O2 @@ -73,6 +68,8 @@ } src_install() { + export MZSCHEME_DYNEXT_LINKER_FLAGS=$(raw-ldflags) + make DESTDIR="${D}" install || die "make install failed" if use 3m; then