X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=libiberty%2Fconfigure;h=96feaedbeba25c25b12c8fddb74e5f0af9ff6a44;hb=5aa03310cef09e8c41aaa05152d9570dfe62ba81;hp=e601ccd99f48869a156d1835a8bf5ab3cab1417d;hpb=a4818a052efb4cea976a03a2f7cb0b38b23d12d0;p=platform%2Fupstream%2Fbinutils.git diff --git a/libiberty/configure b/libiberty/configure index e601ccd..96feaed 100755 --- a/libiberty/configure +++ b/libiberty/configure @@ -594,6 +594,7 @@ pexecute target_header_dir CHECK LIBOBJS +NOASANFLAG PICFLAG INSTALL_DATA INSTALL_SCRIPT @@ -4927,9 +4928,6 @@ case "${host}" in i[34567]86-*-* | x86_64-*-*) PICFLAG=-fpic ;; - m68k-*-*) - PICFLAG=-fpic - ;; # FIXME: Override -fPIC default in libgcc only? sh-*-linux* | sh[2346lbe]*-*-linux*) PICFLAG=-fpic @@ -4963,11 +4961,23 @@ case "${enable_shared}" in "") shared=no ;; *) shared=yes ;; esac + +# ...unless --enable-host-shared was passed from top-level config: +if [ "${enable_host_shared}" = "yes" ]; then + shared=yes +fi + if [ "${shared}" != "yes" ]; then PICFLAG= fi +NOASANFLAG= +case " ${CFLAGS} " in + *\ -fsanitize=address\ *) NOASANFLAG=-fno-sanitize=address ;; +esac + + echo "# Warning: this fragment is automatically generated" > temp-frag if [ -n "${frag}" ] && [ -f "${frag}" ]; then @@ -5507,7 +5517,6 @@ fi setobjs= CHECK= -target_header_dir= if test -n "${with_target_subdir}"; then # We are being configured as a target library. AC_REPLACE_FUNCS