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"
 
 # Port has "/usr/local" hardcoded, we prefer ${LOCALBASE}
 pre-build:

Reply via email to