Skip to content

Conversation

@hiirotsuki
Copy link

If the test were to fail due to cross-compilation it will rename malloc to rpl_malloc which comes from gnulib resulting in a linking failure, lets assume malloc simply works instead.

# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_CHECK_FUNCS([alarm sqrt strerror])
Copy link

@ludo-c ludo-c May 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is still needed to check that a malloc function exists, it can be done in AC_CHECK_FUNCS.

Suggested change
AC_CHECK_FUNCS([alarm sqrt strerror])
AC_CHECK_FUNCS([alarm malloc sqrt strerror])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants