[tools] pkg-config: link statically
[openwrt/svn-archive/archive.git] / tools / pkg-config / Makefile
index bda7df7..fbdc1d0 100644 (file)
@@ -15,16 +15,12 @@ PKG_MD5SUM:=a3270bab3f4b69b7dc6dbdacbcae9745
 
 include $(INCLUDE_DIR)/host-build.mk
 
-define Host/Compile
-       $(MAKE) -C $(HOST_BUILD_DIR)
-endef
+HOST_LDFLAGS += -static
 
 define Host/Install
-       $(MAKE) -C $(HOST_BUILD_DIR) \
-               install
+       $(MAKE) -C $(HOST_BUILD_DIR) install AM_LDFLAGS="-all-static"
        mv $(STAGING_DIR_HOST)/bin/pkg-config $(STAGING_DIR_HOST)/bin/pkg-config.real
        $(INSTALL_BIN) ./files/pkg-config $(STAGING_DIR_HOST)/bin/pkg-config
-       $(INSTALL_DATA) $(HOST_BUILD_DIR)/pkg.m4 $(STAGING_DIR)/host/share/aclocal/
 endef
 
 define Host/Clean