Skip to contentSkip to conversation

package/xmlstarlet: Fix static build

PATCH New Bernd Kuhls 2 participants 2 messages Dec 13, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/xmlstarlet: Fix static build

If libxml2 depends on xz (liblzma) static linking is broken.

Fixes
http://autobuild.buildroot.net/results/df3/df3f5fa770833c8c4344ee0bc67f45aa578ce542/
http://autobuild.buildroot.net/results/070/07021c8bd6e2031c2717fc58e2d3ff30c412fa90/

---
 package/xmlstarlet/xmlstarlet.mk | 1 +
 1 file changed, 1 insertion(+)
package/xmlstarlet/xmlstarlet.mk +1 -0
index 992bb8f..e0abf04 100644
@@ -21,6 +21,7 @@ XMLSTARLET_CONF_OPTS += \
 
 ifeq ($(BR2_STATIC_LIBS),y)
 XMLSTARLET_CONF_OPTS += --enable-static-libs
+XMLSTARLET_CONF_ENV = LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libxml-2.0`"
 else
 XMLSTARLET_CONF_OPTS += --disable-static-libs
 endif
Signature · 1 line
2.6.2
#1 lore raw

PATCH 1/1 package/xmlstarlet: Fix static build

Dear Bernd Kuhls,

Quoted 10 lines · Bernd Kuhls

If libxml2 depends on xz (liblzma) static linking is broken.

Fixes
http://autobuild.buildroot.net/results/df3/df3f5fa770833c8c4344ee0bc67f45aa578ce542/
http://autobuild.buildroot.net/results/070/07021c8bd6e2031c2717fc58e2d3ff30c412fa90/

---
 package/xmlstarlet/xmlstarlet.mk | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com