mirror of
https://github.com/libunwind/libunwind.git
synced 2026-01-12 00:04:03 +08:00
Fix stray -lc in configure
When configure is run with --enable-cxx-exceptions a stray `-lc` has wandered into the execution path. While it doesn't hurt anything if gives a disturbing error message.
This commit is contained in:
committed by
Stephen M. Webb
parent
e8a8b35f5f
commit
bfc0d618f7
@@ -306,10 +306,12 @@ AM_CONDITIONAL([SUPPORT_CXX_EXCEPTIONS], [test x$enable_cxx_exceptions = xyes])
|
||||
AM_COND_IF([SUPPORT_CXX_EXCEPTIONS],
|
||||
[save_LDFLAGS="$LDFLAGS"
|
||||
LDFLAGS="${LDFLAGS} -nostdlib"
|
||||
AC_SEARCH_LIBS([_Unwind_Resume], [gcc_s gcc],
|
||||
AC_SEARCH_LIBS([_Unwind_Resume],
|
||||
[gcc_s gcc],
|
||||
[AS_IF([test "$ac_cv_search__Unwind_Resume" != "none required"],
|
||||
[AC_SUBST([UNW_CRT_LIBADD], ["-lc $ac_cv_search__Unwind_Resume"])
|
||||
AC_SUBST([UNW_CRT_LDFLAGS], ["-WCClinker -nostdlib"])])]
|
||||
AC_SUBST([UNW_CRT_LDFLAGS], ["-WCClinker -nostdlib"])])
|
||||
],,
|
||||
[-lc])
|
||||
LDFLAGS="$save_LDFLAGS"]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user