Hi Madhavan,

On Tue, 22 Apr 2025 17:00:23 +0530 Madhavan Srinivasan <ma...@linux.ibm.com> 
wrote:
>
>  # suppress some warnings in recent ld versions
>  nowarn="-z noexecstack"
> -if [ $(${CROSS}ld -v --no-warn-rwx-segments &>/dev/null; echo $?) -eq 0 ]; 
> then
> +if [ "$("${CROSS}"ld -v --no-warn-rwx-segments >/dev/null 2>&1; echo $?)" 
> -eq 0 ]; then
>       nowarn="$nowarn --no-warn-rwx-segments"
>  fi

On the way to bed, it occurred to me that the above "if" line can be
written as:

if "${CROSS}ld" -v --no-warn-rwx-segments >/dev/null 2>&1; then

-- 
Cheers,
Stephen Rothwell

Attachment: pgpy8RjES7iYp.pgp
Description: OpenPGP digital signature

Reply via email to