Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Host libxml-parser-perl build issue
@ 2012-03-26 16:35 Will Newton
  2012-03-26 17:22 ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Will Newton @ 2012-03-26 16:35 UTC (permalink / raw)
  To: buildroot

Hi all,

I have a build failure building avahi on a CentOS 5 system (old, but
not ancient) which is caused by the configure script failing to load
the XML::Parser perl module. buildroot has built a host version of
libxml-parser-perl and also a host version of expat, but the configure
for avahi is still failing. The reason for this appears to be that
perl cannot find libexpat.so, presumably because it is not in the
shared library search path. The attached patch fixes it but seems like
quite a far-reaching change, does anybody have any opinions on it?

Thanks,

diff --git a/package/Makefile.in b/package/Makefile.in
index dc8d038..3ac7505 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -193,10 +193,12 @@ TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
 		LDFLAGS="$(TARGET_LDFLAGS)" \
 		FCFLAGS="$(TARGET_FCFLAGS)" \
 		PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
+		LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \
 		PERLLIB="$(HOST_DIR)/usr/lib/perl" \
 		STAGING_DIR="$(STAGING_DIR)"

 TARGET_MAKE_ENV=PATH=$(TARGET_PATH) \
+		LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \
 		PERLLIB="$(HOST_DIR)/usr/lib/perl"

 HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \
-------------- next part --------------
diff --git a/package/Makefile.in b/package/Makefile.in
index dc8d038..3ac7505 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -193,10 +193,12 @@ TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
 		LDFLAGS="$(TARGET_LDFLAGS)" \
 		FCFLAGS="$(TARGET_FCFLAGS)" \
 		PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
+		LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \
 		PERLLIB="$(HOST_DIR)/usr/lib/perl" \
 		STAGING_DIR="$(STAGING_DIR)"
 
 TARGET_MAKE_ENV=PATH=$(TARGET_PATH) \
+		LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \
 		PERLLIB="$(HOST_DIR)/usr/lib/perl"
 
 HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-27 10:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-26 16:35 [Buildroot] Host libxml-parser-perl build issue Will Newton
2012-03-26 17:22 ` Thomas Petazzoni
2012-03-26 17:54   ` Will Newton
2012-03-26 19:06     ` Thomas Petazzoni
2012-03-27 10:21       ` Will Newton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox