llvm.org GIT mirror llvm / f3a5ba5
Search for and use the strip program and pass it to install for it to use for stripping final executables. Patch by Simon Atanasyan! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142997 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 7 years ago
4 changed file(s) with 105 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
147147 # Path to the library archiver program.
148148 AR_PATH = @AR@
149149 AR = @AR@
150
151 # Path to the strip program,
152 STRIP = @STRIP@
150153
151154 # Path to the nm program
152155 NM_PATH = @NM@
530530 ifndef KEEP_SYMBOLS
531531 Strip := $(PLATFORMSTRIPOPTS)
532532 StripWarnMsg := "(without symbols)"
533 Install.StripFlag += -s
533 Install.StripFlag += -s --strip-program=$(STRIP)
534534 endif
535535
536536 ifdef TOOL_NO_EXPORTS
896896 AC_PATH_PROG(MV, [mv], [mv])
897897 AC_PROG_RANLIB
898898 AC_CHECK_TOOL(AR, ar, false)
899 AC_CHECK_TOOL(STRIP,[strip], false)
899900 AC_PATH_PROG(RM, [rm], [rm])
900901 AC_PATH_PROG(SED, [sed], [sed])
901902 AC_PATH_PROG(TAR, [tar], [gtar])
720720 MV
721721 RANLIB
722722 AR
723 STRIP
723724 RM
724725 SED
725726 TAR
62256226 AR="$ac_cv_prog_AR"
62266227 fi
62276228
6229 if test -n "$ac_tool_prefix"; then
6230 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6231 set dummy ${ac_tool_prefix}strip; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_prog_STRIP+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237 if test -n "$STRIP"; then
6238 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 break 2
6250 fi
6251 done
6252 done
6253 IFS=$as_save_IFS
6254
6255 fi
6256 fi
6257 STRIP=$ac_cv_prog_STRIP
6258 if test -n "$STRIP"; then
6259 { echo "$as_me:$LINENO: result: $STRIP" >&5
6260 echo "${ECHO_T}$STRIP" >&6; }
6261 else
6262 { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6264 fi
6265
6266
6267 fi
6268 if test -z "$ac_cv_prog_STRIP"; then
6269 ac_ct_STRIP=$STRIP
6270 # Extract the first word of "strip", so it can be a program name with args.
6271 set dummy strip; ac_word=$2
6272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277 if test -n "$ac_ct_STRIP"; then
6278 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_prog_ac_ct_STRIP="strip"
6288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 break 2
6290 fi
6291 done
6292 done
6293 IFS=$as_save_IFS
6294
6295 fi
6296 fi
6297 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6298 if test -n "$ac_ct_STRIP"; then
6299 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6300 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6301 else
6302 { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6304 fi
6305
6306 if test "x$ac_ct_STRIP" = x; then
6307 STRIP="false"
6308 else
6309 case $cross_compiling:$ac_tool_warned in
6310 yes:)
6311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6312 whose name does not start with the host triplet. If you think this
6313 configuration is useful to you, please write to autoconf@gnu.org." >&5
6314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6315 whose name does not start with the host triplet. If you think this
6316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6317 ac_tool_warned=yes ;;
6318 esac
6319 STRIP=$ac_ct_STRIP
6320 fi
6321 else
6322 STRIP="$ac_cv_prog_STRIP"
6323 fi
6324
62286325 # Extract the first word of "rm", so it can be a program name with args.
62296326 set dummy rm; ac_word=$2
62306327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1045910556 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1046010557 lt_status=$lt_dlunknown
1046110558 cat > conftest.$ac_ext <
10462 #line 10463 "configure"
10559 #line 10560 "configure"
1046310560 #include "confdefs.h"
1046410561
1046510562 #if HAVE_DLFCN_H
2192922026 MV!$MV$ac_delim
2193022027 RANLIB!$RANLIB$ac_delim
2193122028 AR!$AR$ac_delim
22029 STRIP!$STRIP$ac_delim
2193222030 RM!$RM$ac_delim
2193322031 SED!$SED$ac_delim
2193422032 TAR!$TAR$ac_delim
2199822096 LTLIBOBJS!$LTLIBOBJS$ac_delim
2199922097 _ACEOF
2200022098
22001 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
22099 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
2200222100 break
2200322101 elif $ac_last_try; then
2200422102 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5