coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] maint: tests: fix library position in link line for building


From: Pádraig Brady
Subject: Re: [PATCH] maint: tests: fix library position in link line for building shared lib
Date: Thu, 02 Oct 2014 16:37:56 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 10/02/2014 03:26 PM, Nick Alcock wrote:
> * init.cfg (gcc_shared_): -ldl has to be positioned after the object
> files that may rely upon it.  (Fixes tests/cp/nfs-removal-race.sh.)
> ---
>  init.cfg | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/init.cfg b/init.cfg
> index 725ee12..3e74e87 100644
> --- a/init.cfg
> +++ b/init.cfg
> @@ -520,7 +520,7 @@ gcc_shared_()
>    local out=$2
>    shift 2 || return 1
>  
> -  $CC -Wall -shared --std=gnu99 -fPIC -ldl -O2 $* "$in" -o "$out"
> +  $CC -Wall -shared --std=gnu99 -fPIC -O2 $* "$in" -o "$out" -ldl
>  }
>  
>  # There are a myriad of ways to build shared libs,
> 

I couldn't reproduce the failure even with -Wl,--as-needed
but I agree the above is better so pushed that.

thanks,
Pádraig.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]