diff mbox

[1/2] Config.in: update description of BR2_PREFER_STATIC_LIB

Message ID 1413131685-5567-2-git-send-email-abrodkin@synopsys.com
State Accepted
Headers show

Commit Message

Alexey Brodkin Oct. 12, 2014, 4:34 p.m. UTC
With time BR2_PREFER_STATIC_LIB option meaning changed from "prefer static
libs when possible" to "do not build dynamic libs and build statically linked
applications".

This patch changes variable description.

Note that variable name is kept unchanged on purpose - it will be modified later
when real "prefer static" mode will be introduced.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>

Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Cc: Peter Korsgaard <peter@korsgaard.com>
---
 Config.in | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

Comments

Thomas Petazzoni Oct. 12, 2014, 4:51 p.m. UTC | #1
Dear Alexey Brodkin,

On Sun, 12 Oct 2014 18:34:44 +0200, Alexey Brodkin wrote:

> diff --git a/Config.in b/Config.in
> index 24aa883..66cea4a 100644
> --- a/Config.in
> +++ b/Config.in
> @@ -536,15 +536,18 @@ comment "enabling Stack Smashing Protection requires support in the toolchain"
>  	depends on !BR2_TOOLCHAIN_HAS_SSP
>  
>  config BR2_PREFER_STATIC_LIB
> -	bool "prefer static libraries"
> +	bool "build statically linked applications, no dynamic libraries"
>  	help
> -	  Where possible, build and use static libraries for the target.
> -	  This potentially increases your code size and should only be
> +	  Build all application for the target statically linked.
> +	  This potentially increases your filesystem size and should only be
>  	  used if you know what you do.
> -	  The default is to build dynamic libraries and use those on
> -	  the target filesystem.
>  
> -	  WARNING: This is highly experimental at the moment.
> +	  Note that some applications cannot be build statically and so are
> +	  intentionally disabled.
> +
> +	  The default is to build dynamic libraries and dynamically linked
> +	  applications to use those on the target filesystem.

"The default" should be clarified as "When this option is disabled".

Also linked -> link.

With this fixed (probably Peter can fix this when applying):

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Thomas
Yann E. MORIN Oct. 12, 2014, 5:22 p.m. UTC | #2
Alexey, All,

On 2014-10-12 18:51 +0200, Thomas Petazzoni spake thusly:
> Dear Alexey Brodkin,
> 
> On Sun, 12 Oct 2014 18:34:44 +0200, Alexey Brodkin wrote:
> 
> > diff --git a/Config.in b/Config.in
> > index 24aa883..66cea4a 100644
> > --- a/Config.in
> > +++ b/Config.in
> > @@ -536,15 +536,18 @@ comment "enabling Stack Smashing Protection requires support in the toolchain"
> >  	depends on !BR2_TOOLCHAIN_HAS_SSP
> >  
> >  config BR2_PREFER_STATIC_LIB
> > -	bool "prefer static libraries"
> > +	bool "build statically linked applications, no dynamic libraries"
> >  	help
> > -	  Where possible, build and use static libraries for the target.
> > -	  This potentially increases your code size and should only be
> > +	  Build all application for the target statically linked.

... all application_s_ ...

Regards,
Yann E. MORIN.

> > +	  This potentially increases your filesystem size and should only be
> >  	  used if you know what you do.
> > -	  The default is to build dynamic libraries and use those on
> > -	  the target filesystem.
> >  
> > -	  WARNING: This is highly experimental at the moment.
> > +	  Note that some applications cannot be build statically and so are
> > +	  intentionally disabled.
> > +
> > +	  The default is to build dynamic libraries and dynamically linked
> > +	  applications to use those on the target filesystem.
> 
> "The default" should be clarified as "When this option is disabled".
> 
> Also linked -> link.
> 
> With this fixed (probably Peter can fix this when applying):
> 
> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> 
> Thomas
> -- 
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
Peter Korsgaard Oct. 12, 2014, 10:17 p.m. UTC | #3
>>>>> "Alexey" == Alexey Brodkin <alexey.brodkin@gmail.com> writes:

 > With time BR2_PREFER_STATIC_LIB option meaning changed from "prefer static
 > libs when possible" to "do not build dynamic libs and build statically linked
 > applications".

 > This patch changes variable description.

 > Note that variable name is kept unchanged on purpose - it will be modified later
 > when real "prefer static" mode will be introduced.

 > Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>

 > Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 > Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
 > Cc: Peter Korsgaard <peter@korsgaard.com>

Committed with the minor text tweaks suggested fixed, thanks.
diff mbox

Patch

diff --git a/Config.in b/Config.in
index 24aa883..66cea4a 100644
--- a/Config.in
+++ b/Config.in
@@ -536,15 +536,18 @@  comment "enabling Stack Smashing Protection requires support in the toolchain"
 	depends on !BR2_TOOLCHAIN_HAS_SSP
 
 config BR2_PREFER_STATIC_LIB
-	bool "prefer static libraries"
+	bool "build statically linked applications, no dynamic libraries"
 	help
-	  Where possible, build and use static libraries for the target.
-	  This potentially increases your code size and should only be
+	  Build all application for the target statically linked.
+	  This potentially increases your filesystem size and should only be
 	  used if you know what you do.
-	  The default is to build dynamic libraries and use those on
-	  the target filesystem.
 
-	  WARNING: This is highly experimental at the moment.
+	  Note that some applications cannot be build statically and so are
+	  intentionally disabled.
+
+	  The default is to build dynamic libraries and dynamically linked
+	  applications to use those on the target filesystem.
+
 
 config BR2_PACKAGE_OVERRIDE_FILE
 	string "location of a package override file"