/proc/self/exe is detected in build sytem, but target sytem may not support it.
when building with MINGW, I got an error because readlink() function did not exist.
This happens because configure script detects /proc/self/exe presence without checking if the host and build platforms are the same.
So, if you are cross compiling, /proc/self/exe may not exist on target platform and later this could cause an error when building.
Perhaps you may find interesting the way it has been implemented the detection of /proc/self/exe in the build scripts of GNUC, see for example this:
Hope you will find it useful.
#1 Updated by John Lindgren over 2 years ago
- Category set to libaudcore
- Status changed from New to Closed
- Target version set to 3.8
- % Done changed from 0 to 100
I agree, checking for /proc/self/exe on the host system is not the right way. We should just check for the
__linux__ macro. If we do end up running on a system without /proc mounted, the readlink() call will just fail, with no harm done.