forked from len0rd/rockbox
Fix Sim & checkwps for newer distros
__builtin found fix for rbendian.h tools/configure defines SIM_USE_BYTESWAP_H if byteswap.h is found in /usr/include/ maybe there is a better mechanism for this Change-Id: I4d004e68313e8b32aa5587582be36bc459fdaf6b
This commit is contained in:
parent
69c6c77680
commit
0f5f5c3390
2 changed files with 7 additions and 2 deletions
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#ifdef SIM_USE_BYTESWAP_H
|
#ifdef OS_USE_BYTESWAP_H
|
||||||
#include <byteswap.h>
|
#include <byteswap.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
7
tools/configure
vendored
7
tools/configure
vendored
|
|
@ -4394,6 +4394,7 @@ fi
|
||||||
;;
|
;;
|
||||||
[Cc])
|
[Cc])
|
||||||
uname=`uname`
|
uname=`uname`
|
||||||
|
checkwps="yes"
|
||||||
simcc "checkwps"
|
simcc "checkwps"
|
||||||
toolset='';
|
toolset='';
|
||||||
t_cpu='';
|
t_cpu='';
|
||||||
|
|
@ -4474,9 +4475,13 @@ fi
|
||||||
if [ "yes" = "$simulator" ]; then
|
if [ "yes" = "$simulator" ]; then
|
||||||
echo Unsetting APPLICATION define for SIMULATOR build
|
echo Unsetting APPLICATION define for SIMULATOR build
|
||||||
unset application
|
unset application
|
||||||
|
fi
|
||||||
|
|
||||||
|
# newer glibc implementations use byteswap.h
|
||||||
|
if [ "$simulator" = "yes" ] || [ "$checkwps" = "yes" ]; then
|
||||||
if test -f "$BYTESWP"; then
|
if test -f "$BYTESWP"; then
|
||||||
echo Using "$BYTESWP"
|
echo Using "$BYTESWP"
|
||||||
extradefines="$extradefines -DSIM_USE_BYTESWAP_H=$BYTESWP"
|
extradefines="$extradefines -DOS_USE_BYTESWAP_H=$BYTESWP"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue