Make sure to install the 'libgthread' shared libraries as well. Also, allow for confi...
author"Steven J. Hill" <sjhill@realitydiluted.com>
Sun, 14 Jan 2007 01:02:36 +0000 (01:02 -0000)
committer"Steven J. Hill" <sjhill@realitydiluted.com>
Sun, 14 Jan 2007 01:02:36 +0000 (01:02 -0000)
package/libglib2/Config.in
package/libglib2/libglib2.mk

index 2f7028689587b35532fb4e8ba067f2033d4b2514..c327d8ab2c291ac90a0b078caddb6f9a2d15e8c9 100644 (file)
@@ -1,9 +1,16 @@
 config BR2_PACKAGE_LIBGLIB2
        bool "libglib2"
        default n
-       select BR2_ENABLE_LOCALE
-       select BR2_PACKAGE_LIBINTL
        help
          Low-level core library that forms the basis of GTK+ and GNOME.
 
          http://www.gtk.org/
+
+config BR2_PACKAGE_LIBGLIB2_LOCALE
+       bool "libglib2-locale"
+       default n
+       select BR2_ENABLE_LOCALE
+       select BR2_PACKAGE_LIBINTL
+       select BR2_PACKAGE_PKGCONFIG
+       help
+         Enable locale support for Glib library.
index 8742613b8418afc5e8d7e35a4e00eae4143bf6fc..a2b26253bc066fa9fb781c428ed4de727553cbe3 100644 (file)
@@ -138,15 +138,25 @@ $(TARGET_DIR)/lib/libglib-2.0.so.0.1200.6: $(STAGING_DIR)/lib/$(LIBGLIB2_BINARY)
        cp -a $(STAGING_DIR)/lib/libgmodule-2.0.so.0* $(TARGET_DIR)/lib/
        cp -a $(STAGING_DIR)/lib/libgobject-2.0.so $(TARGET_DIR)/lib/
        cp -a $(STAGING_DIR)/lib/libgobject-2.0.so.0* $(TARGET_DIR)/lib/
+       cp -a $(STAGING_DIR)/lib/libgthread-2.0.so $(TARGET_DIR)/lib/
+       cp -a $(STAGING_DIR)/lib/libgthread-2.0.so.0* $(TARGET_DIR)/lib/
        $(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libglib-2.0.so.0.*
        $(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libgmodule-2.0.so.0.*
        $(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libgobject-2.0.so.0.*
+       $(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libgthread-2.0.so.0.*
        touch -c $(TARGET_DIR)/lib/libglib-2.0.so.0.1200.6
 
+ifeq ($(strip $(BR2_PACKAGE_LIBGLIB2_LOCAL)),y)
 libglib2: uclibc gettext libintl pkgconfig $(TARGET_DIR)/lib/libglib-2.0.so.0.1200.6
+else
+libglib2: uclibc $(TARGET_DIR)/lib/libglib-2.0.so.0.1200.6
+endif
 
 libglib2-clean:
-       rm -f $(TARGET_DIR)/lib/$(LIBGLIB2_BINARY)
+       rm -f $(TARGET_DIR)/usr/lib/libglib-2.0*
+       rm -f $(TARGET_DIR)/usr/lib/libgmodule-2.0*
+       rm -f $(TARGET_DIR)/usr/lib/libgobject-2.0*
+       rm -f $(TARGET_DIR)/usr/lib/libgthread-2.0*
        -$(MAKE) -C $(LIBGLIB2_DIR) clean
 
 libglib2-dirclean: