Skip to content

Commit

Permalink
build: Don't default to underscore=yes for cross-build.
Browse files Browse the repository at this point in the history
* acinclude.m4: Don't set ac_cv_sys_symbol_underscore
for cross build.

--

It made sense in the past when cross compile were basically for a.out
system, but nowadays, it's better not to assume that.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
  • Loading branch information
NIIBE Yutaka committed Oct 24, 2018
1 parent e2da4e8 commit 0f4545b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,10 @@ case "${host}" in
ac_cv_sys_symbol_underscore=yes
;;
*)
if test "$cross_compiling" = yes; then
if test "x$ac_cv_sys_symbol_underscore" = x ; then
ac_cv_sys_symbol_underscore=yes
fi
else
if test "$cross_compiling" != yes; then
tmp_do_check="yes"
fi
;;
;;
esac
if test "$tmp_do_check" = "yes"; then
AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])
Expand Down

0 comments on commit 0f4545b

Please sign in to comment.