diff options
Diffstat (limited to 'package/libcgi/libcgi.mk')
-rw-r--r-- | package/libcgi/libcgi.mk | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/package/libcgi/libcgi.mk b/package/libcgi/libcgi.mk index c72563b16..141100889 100644 --- a/package/libcgi/libcgi.mk +++ b/package/libcgi/libcgi.mk @@ -15,6 +15,7 @@ $(DL_DIR)/$(LIBCGI_SOURCE): $(LIBCGI_DIR)/.source: $(DL_DIR)/$(LIBCGI_SOURCE) $(ZCAT) $(DL_DIR)/$(LIBCGI_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - + toolchain/patch-kernel.sh $(LIBCGI_DIR) package/libcgi/ libcgi\*.patch touch $(LIBCGI_DIR)/.source $(LIBCGI_DIR)/.configured: $(LIBCGI_DIR)/.source @@ -25,7 +26,7 @@ $(LIBCGI_DIR)/.configured: $(LIBCGI_DIR)/.source --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ --build=$(GNU_HOST_NAME) \ - --prefix=/usr \ + --prefix=$(STAGING_DIR) \ --sysconfdir=/etc \ ); touch $(LIBCGI_DIR)/.configured; @@ -33,16 +34,19 @@ $(LIBCGI_DIR)/.configured: $(LIBCGI_DIR)/.source $(LIBCGI_DIR)/$(LIBCGI_LIBRARY): $(LIBCGI_DIR)/.configured $(MAKE) CC=$(TARGET_CC) -C $(LIBCGI_DIR) -$(TARGET_DIR)/$(LIBCGI_TARGET_LIBRARY): $(LIBCGI_DIR)/$(LIBCGI_LIBRARY) - cp $(LIBCGI_DIR)/src/libcgi.so $(TARGET_DIR)/usr/lib/ +$(STAGING_DIR)/lib/libcgi.so: $(LIBCGI_DIR)/$(LIBCGI_LIBRARY) + $(MAKE) -C $(LIBCGI_DIR) install + touch -c $(STAGING_DIR)/lib/libcgi.so + +$(TARGET_DIR)/$(LIBCGI_TARGET_LIBRARY): $(STAGING_DIR)/lib/libcgi.so + cp -dpf $(STAGING_DIR)/lib/libcgi.so* $(TARGET_DIR)/usr/lib/ libcgi: uclibc $(TARGET_DIR)/$(LIBCGI_TARGET_LIBRARY) libcgi-source: $(DL_DIR)/$(LIBCGI_SOURCE) libcgi-clean: - rm $(TARGET_DIR)/usr/lib/libcgi.so - + rm $(TARGET_DIR)/usr/lib/libcgi.so* -$(MAKE) -C $(LIBCGI_DIR) clean libcgi-dirclean: @@ -54,6 +58,6 @@ libcgi-dirclean: # ############################################################# ifeq ($(strip $(BR2_PACKAGE_LIBCGI)),y) - TARGETS+=libcgi +TARGETS+=libcgi endif |