Skip to content

Commit 9d3c91a

Browse files
author
Bas Vodde
committed
Regenerated file
1 parent 8654637 commit 9d3c91a

File tree

1 file changed

+28
-8
lines changed

1 file changed

+28
-8
lines changed

configure

+28-8
Original file line numberDiff line numberDiff line change
@@ -6226,13 +6226,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
62266226
# AC_LINK_IFELSE([AC_LANG_PROGRAM([])], [AC_MSG_RESULT([yes]); CPPUTEST_NO_UNUSED_ARGUMENT_WARNING+=" -Qunused-arguments" ], [AC_MSG_RESULT([no])])
62276227
# LDFLAGS="$saved_ldflags"
62286228

6229-
#if [ -z "`$CXX --version | grep LLVM`" ]
6230-
#then
6231-
# AC_MSG_RESULT([no])
6232-
#else
6233-
# AC_MSG_RESULT([yes])
6234-
#fi
6235-
62366229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CXXLD supports -Qunused-arguments linker option" >&5
62376230
$as_echo_n "checking whether CXXLD supports -Qunused-arguments linker option... " >&6; }
62386231
OUTPUT_WHEN_CLANG_COMPILER=`${CXX} --version | grep clang`
@@ -6252,6 +6245,33 @@ else
62526245
$as_echo "no" >&6; }; CPPUTEST_NO_UNUSED_ARGUMENT_WARNING+=" "
62536246
fi
62546247

6248+
# Checking for options for creating map files
6249+
LDFLAGS=" -Wl,-map,$<.map.txt"
6250+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LD supports -Wl,-map" >&5
6251+
$as_echo_n "checking whether LD supports -Wl,-map... " >&6; }
6252+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253+
/* end confdefs.h. */
6254+
6255+
int
6256+
main ()
6257+
{
6258+
6259+
;
6260+
return 0;
6261+
}
6262+
_ACEOF
6263+
if ac_fn_c_try_link "$LINENO"; then :
6264+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6265+
$as_echo "yes" >&6; }; CPPUTEST_LD_MAP_GENERATION+=" -Wl,-map,$<.map.txt"
6266+
else
6267+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268+
$as_echo "no" >&6; }
6269+
fi
6270+
rm -f core conftest.err conftest.$ac_objext \
6271+
conftest$ac_exeext conftest.$ac_ext
6272+
LDFLAGS="$saved_ldflags"
6273+
6274+
62556275
# Different features
62566276
# Check whether --enable-std-c was given.
62576277
if test "${enable_std_c+set}" = set; then :
@@ -6376,7 +6396,7 @@ fi
63766396

63776397
# Generating map files.
63786398
if test "x${generate_map_file}" = xyes; then
6379-
CPPUTEST_LDFLAGS+=" -Wl,-map,$<.map.txt"
6399+
CPPUTEST_LDFLAGS+=$CPPUTEST_LD_MAP_GENERATION
63806400
MOSTLYCLEANFILES+=" *.map.txt"
63816401
fi
63826402

0 commit comments

Comments
 (0)