On Wed, Nov 05, 2008 at 03:20:03AM -0500, Aaron W. Hsu wrote: > The following patch fixes an (apparently known) issue with glib2 > wherein the port cannot be installed or built on a system with an > existing, incompatible glib2 version (i.e. -- older package) > installed, because the build would catch the older libraries rather > than the newly built ones. This patch works around this by fiddling > with LDFLAGS to catch the new libraries. > > A better solution would be for the system to build correctly without > having to fiddle with LDFLAGS at all, but this works at least on > my system. Testing welcomed. > > Aaron Hsu > > --- Makefile.orig Wed Nov 5 03:13:27 2008 > +++ Makefile Wed Nov 5 03:19:27 2008 > @@ -54,7 +54,12 @@ > --with-pcre=system \ > --disable-fam > CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ > - LDFLAGS="-L${LOCALBASE}/lib" > + LDFLAGS="-L${WRKSRC}/glib/.libs \ > + -L${WRKSRC}/gthread/.libs \ > + -L${WRKSRC}/gio/.libs \ > + -L${WRKSRC}/gobject/.libs \ > + -L${WRKSRC}/gmodule/.libs \ > + -L${LOCALBASE}/lib"
The problem is libtool. Your patch doesn't even start to solve the problem.