Chi Hsuan Yen added the comment:

(Re-use the existing issue)

Here's a patch that tries to add -Werror=implicit-function-declaration to 

This is useful for cross-compiling. When a function is missing, the error jumps 
out during the build time rather than runtime.

Tested configurations:
* Arch Linux x86_64 native build
* macOS Sierra native build
* Android ARM, API 21 cross build

I'd like to hear some ideas from macOS experts as in my memory macOS's build 
system is fragile than that on Linux.

components: +Build
nosy: +ned.deily, ronaldoussoren
title: Check for the existence of crypt() -> Prohibit implicit C function 
type: compile error -> enhancement
Added file:

Python tracker <>
Python-bugs-list mailing list

Reply via email to