[Buildroot] Second Step in allowing Static / shared library choice

Daniel Laird danieljlaird at hotmail.com
Thu Feb 8 16:12:46 UTC 2007


The second step is to modify package/Makefile.in with the following patch:
This means in package makefiles we can use $(ENABLE_STATIC_LIBS) etc as a
shortcut to decide if we are configuring in support for static or shared (or
both) libraries.

Cheers
Dan 

@@ -98,6 +99,18 @@
 DISABLE_NLS:=
 else
 DISABLE_NLS:=--disable-nls
+endif
+
+ifeq ($(BR2_STATIC_LIBS),y)
+ENABLE_STATIC_LIBS:=--enable-static
+else
+ENABLE_STATIC_LIBS:=
+endif
+
+ifeq ($(BR2_SHARED_LIBS),y)
+ENABLE_SHARED_LIBS:=--enable-static
+else
+ENABLE_SHARED_LIBS:=
 endif
 
 ifneq ($(BR2_LARGEFILE),y)

This p
-- 
View this message in context: http://www.nabble.com/Second-Step-in-allowing-Static---shared-library-choice-tf3194228.html#a8868429
Sent from the BuildRoot mailing list archive at Nabble.com.




More information about the buildroot mailing list