summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-08-19 20:59:37 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-08-19 20:59:37 +0000
commitf60308be15419d886dee78fc523b288c30a21167 (patch)
tree9af39b8a46be6803b3ebadfc5168b8ba958c4713 /package
parent6c2d80b2ae376fc301ed088a6d4b0352f3ff58a6 (diff)
downloadbuildroot-novena-f60308be15419d886dee78fc523b288c30a21167.tar.gz
buildroot-novena-f60308be15419d886dee78fc523b288c30a21167.zip
Från: Brad House <brad@mainstreetsoftworks.com>
Till: buildroot@uclibc.org Ämne: [Buildroot] [patch] libxml2 install fails because of missing directory Datum: Tue, 14 Aug 2007 16:34:34 -0400 (22.34 CEST) If libxml2 is installed before $(TARGET_DIR)/usr/lib is created, it fails because it can't copy the library over. Also, the dependency tree is a bit messed up. libxml2.a should only be installed if target-headers is specified, it's 4MB on my system and the only .a file I found in my TARGET_DIR (target-headers was not specified). The attached patch fixes the above problems. -Brad
Diffstat (limited to 'package')
-rw-r--r--package/libxml2/libxml2.mk12
1 files changed, 4 insertions, 8 deletions
diff --git a/package/libxml2/libxml2.mk b/package/libxml2/libxml2.mk
index 17bba150b..10cc438d9 100644
--- a/package/libxml2/libxml2.mk
+++ b/package/libxml2/libxml2.mk
@@ -47,11 +47,8 @@ $(LIBXML2_DIR)/.configured: $(LIBXML2_DIR)/.unpacked
);
touch $(LIBXML2_DIR)/.configured
-$(LIBXML2_DIR)/libxml2.la: $(LIBXML2_DIR)/.configured
- rm -f $@
+$(STAGING_DIR)/usr/lib/libxml2.so: $(LIBXML2_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) -C $(LIBXML2_DIR)
-
-$(STAGING_DIR)/usr/lib/libxml2.so: $(LIBXML2_DIR)/libxml2.la
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBXML2_DIR) install
rm -f $(STAGING_DIR)/usr/lib/libxml2.la
$(SED) 's:prefix=/usr:prefix=$(STAGING_DIR)/usr:' \
@@ -59,17 +56,16 @@ $(STAGING_DIR)/usr/lib/libxml2.so: $(LIBXML2_DIR)/libxml2.la
$(STAGING_DIR)/usr/bin/xml2-config
$(TARGET_DIR)/usr/lib/libxml2.so: $(STAGING_DIR)/usr/lib/libxml2.so
+ mkdir -p $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/lib
cp -dpf $(STAGING_DIR)/usr/lib/libxml2.so* $(TARGET_DIR)/usr/lib/
$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libxml2.so*
$(TARGET_DIR)/usr/lib/libxml2.a: $(STAGING_DIR)/usr/lib/libxml2.so
- mkdir -p $(TARGET_DIR)/usr/include
cp -dpf $(STAGING_DIR)/usr/lib/libxml2.*a $(TARGET_DIR)/usr/lib/
-# cp -dpf $(STAGING_DIR)/usr/include/libxml $(TARGET_DIR)/usr/include/
libxml2: uclibc $(TARGET_DIR)/usr/lib/libxml2.so libxml2-headers
-$(STAGING_DIR)/usr/include/libxml: $(TARGET_DIR)/usr/lib/libxml2.a
+$(STAGING_DIR)/usr/include/libxml: $(TARGET_DIR)/usr/lib/libxml2.so
cp -af $(LIBXML2_DIR)/include/libxml $(STAGING_DIR)/usr/include/libxml2
$(TARGET_DIR)/usr/include/libxml2: libxml2-headers
@@ -78,7 +74,7 @@ $(TARGET_DIR)/usr/include/libxml2: libxml2-headers
libxml2-headers: $(STAGING_DIR)/usr/include/libxml
-libxml2-target-headers: $(TARGET_DIR)/usr/include/libxml2
+libxml2-target-headers: $(TARGET_DIR)/usr/include/libxml2 $(TARGET_DIR)/usr/lib/libxml2.a
libxml2-source: $(DL_DIR)/$(LIBXML2_SOURCE)