Temporarily allow static libgettext library option to ensure build can complete for ARM
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Mon, 16 Jul 2007 10:00:29 +0000 (10:00 -0000)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Mon, 16 Jul 2007 10:00:29 +0000 (10:00 -0000)
package/gettext/Config.in
package/gettext/gettext.mk

index 3c056d6470230d4185c0562c58e95c97a92bcfa6..7e92a9622ce56b9ffb816c0fd24027b169981236 100644 (file)
@@ -8,6 +8,19 @@ config BR2_PACKAGE_GETTEXT
 
          http://www.gnu.org/software/gettext/
 
+config BR2_PACKAGE_GETTEXT_STATIC
+       bool "Use libgettext.a instead of libgettext.so.*"
+       default y
+       depends on BR2_PACKAGE_GETTEXT
+       depends on BR2_arm
+       help
+         The GNU `gettext' utilities are a set of tools that provide a
+         framework to help other GNU packages produce multi-lingual
+         messages.
+
+         http://www.gnu.org/software/gettext/
+
+
 config BR2_PACKAGE_LIBINTL
        bool "libintl"
        default n
index 63bb2248b8cfa542c4d9967d6e5d883816853d57..f6c9719418c345325decf9760ed391c1793fa71e 100644 (file)
@@ -11,6 +11,12 @@ GETTEXT_CAT:=$(ZCAT)
 GETTEXT_BINARY:=gettext-runtime/src/gettext
 GETTEXT_TARGET_BINARY:=usr/bin/gettext
 
+ifeq ($(strip $(BR2_PACKAGE_GETTEXT_STATIC)),y)
+LIBINTL_TARGET_BINARY:=usr/lib/libintl.a
+else
+LIBINTL_TARGET_BINARY:=usr/lib/libintl.so
+endif
+
 $(DL_DIR)/$(GETTEXT_SOURCE):
         $(WGET) -P $(DL_DIR) $(GETTEXT_SITE)/$(GETTEXT_SOURCE)
 
@@ -91,6 +97,7 @@ $(GETTEXT_DIR)/.configured: $(GETTEXT_DIR)/.unpacked
                --prefix=/usr \
                --exec-prefix=/usr \
                --disable-libasprintf \
+               --enable-shared \
                $(IGNORE_EXTERNAL_GETTEXT) \
                $(OPENMP) \
        );
@@ -144,7 +151,12 @@ $(TARGET_DIR)/usr/lib/libintl.so: $(STAGING_DIR)/$(GETTEXT_TARGET_BINARY)
        rm -f $(TARGET_DIR)/usr/lib/libgettext*.so*.la $(TARGET_DIR)/usr/lib/libintl*.so*.la
        touch -c $@
 
-libintl: $(TARGET_DIR)/usr/lib/libintl.so
+$(TARGET_DIR)/usr/lib/libintl.a: $(STAGING_DIR)/$(GETTEXT_TARGET_BINARY)
+       cp -dpf $(STAGING_DIR)/usr/lib/libgettext*.a $(TARGET_DIR)/usr/lib/
+       cp -dpf $(STAGING_DIR)/usr/lib/libintl*.a       $(TARGET_DIR)/usr/lib/
+       touch -c $@
+
+libintl: $(TARGET_DIR)/$(LIBINTL_TARGET_BINARY)
 
 #############################################################
 #