Patchwork Add -static earlier to LDFLAGS for compile_prog()

login
register
mail settings
Submitter Loïc Minier
Date Jan. 31, 2010, 11:23 a.m.
Message ID <1264937025-29812-1-git-send-email-lool@dooz.org>
Download mbox | patch
Permalink /patch/44111/
State New
Headers show

Comments

Loïc Minier - Jan. 31, 2010, 11:23 a.m.
Add -static to LDFLAGS earlier as to run the compile_prog() tests with
this flags, this will avoid turning on features for which a shared
library is available but not a static one.

Signed-off-by: Loïc Minier <lool@dooz.org>
---
 configure |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
Aurelien Jarno - Feb. 6, 2010, 9:23 p.m.
On Sun, Jan 31, 2010 at 12:23:45PM +0100, Loïc Minier wrote:
> Add -static to LDFLAGS earlier as to run the compile_prog() tests with
> this flags, this will avoid turning on features for which a shared
> library is available but not a static one.

Thanks, applied.

> Signed-off-by: Loïc Minier <lool@dooz.org>
> ---
>  configure |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/configure b/configure
> index 42ef628..ab6bd8e 100755
> --- a/configure
> +++ b/configure
> @@ -488,7 +488,9 @@ for opt do
>    ;;
>    --enable-gprof) gprof="yes"
>    ;;
> -  --static) static="yes"
> +  --static)
> +    static="yes"
> +    LDFLAGS="-static $LDFLAGS"
>    ;;
>    --sysconfdir) sysconfdir="$optarg"
>    ;;
> @@ -2025,7 +2027,6 @@ if test "$solaris" = "yes" ; then
>  fi
>  if test "$static" = "yes" ; then
>    echo "CONFIG_STATIC=y" >> $config_host_mak
> -  LDFLAGS="-static $LDFLAGS"
>  fi
>  if test $profiler = "yes" ; then
>    echo "CONFIG_PROFILER=y" >> $config_host_mak
> -- 
> 1.6.5
> 
> 
> 
>

Patch

diff --git a/configure b/configure
index 42ef628..ab6bd8e 100755
--- a/configure
+++ b/configure
@@ -488,7 +488,9 @@  for opt do
   ;;
   --enable-gprof) gprof="yes"
   ;;
-  --static) static="yes"
+  --static)
+    static="yes"
+    LDFLAGS="-static $LDFLAGS"
   ;;
   --sysconfdir) sysconfdir="$optarg"
   ;;
@@ -2025,7 +2027,6 @@  if test "$solaris" = "yes" ; then
 fi
 if test "$static" = "yes" ; then
   echo "CONFIG_STATIC=y" >> $config_host_mak
-  LDFLAGS="-static $LDFLAGS"
 fi
 if test $profiler = "yes" ; then
   echo "CONFIG_PROFILER=y" >> $config_host_mak