summaryrefslogtreecommitdiffstats
path: root/tools/configure
diff options
context:
space:
mode:
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure
index 330c6640fe..6398c48d06 100755
--- a/tools/configure
+++ b/tools/configure
@@ -10,6 +10,9 @@
# global CC options for all platforms
CCOPTS="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes -pipe -std=gnu99"
+#newer versions GLIBC use byteswap.h
+BYTESWP="/usr/include/byteswap.h"
+
# LD options for the core
LDOPTS=""
# LD options for the core + plugins
@@ -4471,6 +4474,10 @@ fi
if [ "yes" = "$simulator" ]; then
echo Unsetting APPLICATION define for SIMULATOR build
unset application
+ if test -f "$BYTESWP"; then
+ echo Using "$BYTESWP"
+ extradefines="$extradefines -DSIM_USE_BYTESWAP_H=$BYTESWP"
+ fi
fi
if [ "yes" = "$application" ]; then