/proc/self/exe is detected in build sytem, but target sytem may not support it.
|Status:||Closed||Start date:||July 30, 2016|
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 7 months ago
- % Done changed from 0 to 100
- Target version set to 3.8
- Status changed from New to Closed
- Category set to libaudcore
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.