svn commit: trunk/buildroot/package/flex

prpplague at uclibc.org prpplague at uclibc.org
Mon Jan 23 21:21:03 UTC 2006


Author: prpplague
Date: 2006-01-23 13:21:00 -0800 (Mon, 23 Jan 2006)
New Revision: 13532

Log:
add option to install libfl.a per case 0000438

Modified:
   trunk/buildroot/package/flex/Config.in
   trunk/buildroot/package/flex/flex.mk


Changeset:
Modified: trunk/buildroot/package/flex/Config.in
===================================================================
--- trunk/buildroot/package/flex/Config.in	2006-01-23 21:15:14 UTC (rev 13531)
+++ trunk/buildroot/package/flex/Config.in	2006-01-23 21:21:00 UTC (rev 13532)
@@ -6,3 +6,11 @@
 	  programs that perform pattern-matching on text.
 
 	  http://www.gnu.org/software/flex/
+
+config BR2_PACKAGE_FLEX_LIBFL
+	bool "Install libfl.a under staging_dir/lib"
+	default y
+	depends on BR2_PACKAGE_FLEX
+	help
+	  Install libfl.a under staging_dir/lib for further development
+	  on a host machine.

Modified: trunk/buildroot/package/flex/flex.mk
===================================================================
--- trunk/buildroot/package/flex/flex.mk	2006-01-23 21:15:14 UTC (rev 13531)
+++ trunk/buildroot/package/flex/flex.mk	2006-01-23 21:21:00 UTC (rev 13532)
@@ -66,6 +66,9 @@
 	    mandir=$(TARGET_DIR)/usr/man \
 	    includedir=$(TARGET_DIR)/usr/include \
 	    -C $(FLEX_DIR) install
+ifeq ($(strip $(BR2_PACKAGE_FLEX_LIBFL)),y)
+	install -D $(FLEX_DIR)/libfl.a $(STAGING_DIR)/lib/libfl.a
+endif
 	rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
 		$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
 	(cd $(TARGET_DIR)/usr/bin; ln -snf flex lex)
@@ -89,6 +92,9 @@
 	    includedir=$(TARGET_DIR)/usr/include \
 		-C $(FLEX_DIR) uninstall
 	rm -f $(TARGET_DIR)/usr/bin/lex
+ifeq ($(strip $(BR2_PACKAGE_FLEX_LIBFL)),y)
+	-rm $(STAGING_DIR)/lib/libfl.a
+endif
 	-$(MAKE) -C $(FLEX_DIR) clean
 
 flex-dirclean:




More information about the uClibc-cvs mailing list