Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop useless malloc configure check #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

@@ -14,7 +14,6 @@ AC_CHECK_HEADERS([stdlib.h string.h unistd.h sys/prctl.h])

# 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