$NetBSD: patch-aa,v 1.6 2009/10/22 10:25:02 jmmv Exp $

--- src/build-data/cc/gcc.orig	2009-09-10 01:29:34.000000000 +0100
+++ src/build-data/cc/gcc
@@ -31,7 +31,7 @@ default -> "$(CXX) -shared -fPIC -Wl,-so
 # AIX doesn't seem to have soname support (weird...)
 aix     -> "$(CXX) -shared -fPIC"
 
-darwin  -> "$(CXX) -dynamiclib -fPIC -install_name $(SONAME)"
+darwin  -> "$(CXX) -dynamiclib -fPIC -install_name $(LIBDIR)/$(SONAME)"
 hpux    -> "$(CXX) -shared -fPIC -Wl,+h,$(SONAME)"
 solaris -> "$(CXX) -shared -fPIC -Wl,-h,$(SONAME)"
 # Gotta use ld directly on BeOS, their GCC is busted
