Saturday, June 14, 2025

wrong strip(1) parameters in lang/ruby

I don't understand why our ruby determines "-A -n" when it should be
"-S -x". This leads to issues when you building custom gems.

# irb test case:
irb(main):002> RbConfig::CONFIG['STRIP']
=> "strip -A -n"

I don't really see anything wrong here. "if "${STRIP}" -A -n
conftest$ac_exeext 2>/dev/null" should test with an error but it
probably doesn't.

# configure:
if ac_fn_c_try_link "$LINENO"
then :
if "${STRIP}" -A -n conftest$ac_exeext 2>/dev/null
then :

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -A -n" >&5
printf "%s\n" "${msg_result_other}-A -n${msg_reset}" >&6 ; }
STRIP="${STRIP} -A -n"

elif "${STRIP}" -S -x conftest$ac_exeext 2>/dev/null
then :

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -S -x" >&5
printf "%s\n" "${msg_result_other}-S -x${msg_reset}" >&6 ; }
STRIP="${STRIP} -S -x"

else $as_nop

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "${msg_result_other}none needed${msg_reset}" >&6 ; }

fi

No comments:

Post a Comment