CONFIGURE: Update libunity detection by adding a call to one of unity functions in the cc_check test
Some older compilers might not error out on missing headers and will compile (with warnings) unless a symbol is missing
This commit is contained in:
parent
f843b3f280
commit
0ae3e4f289
1 changed files with 4 additions and 1 deletions
5
configure
vendored
5
configure
vendored
|
@ -2946,7 +2946,10 @@ if test "$_unity" = auto ; then
|
|||
_unity=no
|
||||
cat > $TMPC << EOF
|
||||
#include <unity.h>
|
||||
int main(void) { return 0; }
|
||||
int main(void) {
|
||||
unity_launcher_entry_get_for_desktop_id("scummvm.desktop");
|
||||
return 0;
|
||||
}
|
||||
EOF
|
||||
cc_check $UNITY_CFLAGS $UNITY_LIBS -lunity && _unity=yes
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue