summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/configure17
1 files changed, 5 insertions, 12 deletions
diff --git a/tools/configure b/tools/configure
index a7635a8460..fa7a830959 100755
--- a/tools/configure
+++ b/tools/configure
@@ -10,9 +10,6 @@
10# global CC options for all platforms 10# global CC options for all platforms
11CCOPTS="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes -pipe -std=gnu99" 11CCOPTS="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes -pipe -std=gnu99"
12 12
13#newer versions GLIBC use byteswap.h
14BYTESWP="/usr/include/byteswap.h"
15
16# LD options for the core 13# LD options for the core
17LDOPTS="" 14LDOPTS=""
18# LD options for the core + plugins 15# LD options for the core + plugins
@@ -349,6 +346,11 @@ simcc () {
349 sigaltstack=`check_sigaltstack` 346 sigaltstack=`check_sigaltstack`
350 echo "Linux host detected" 347 echo "Linux host detected"
351 LDOPTS="$LDOPTS -ldl" 348 LDOPTS="$LDOPTS -ldl"
349 # newer glibc implementations use byteswap.h
350 if echo "#include <byteswap.h>" | gcc -E - > /dev/null 2>&1; then
351 echo "Using byteswap.h"
352 extradefines="$extradefines -DOS_USE_BYTESWAP_H"
353 fi
352 ;; 354 ;;
353 355
354 FreeBSD) 356 FreeBSD)
@@ -4394,7 +4396,6 @@ fi
4394 ;; 4396 ;;
4395 [Cc]) 4397 [Cc])
4396 uname=`uname` 4398 uname=`uname`
4397 checkwps="yes"
4398 simcc "checkwps" 4399 simcc "checkwps"
4399 toolset=''; 4400 toolset='';
4400 t_cpu=''; 4401 t_cpu='';
@@ -4477,14 +4478,6 @@ if [ "yes" = "$simulator" ]; then
4477 unset application 4478 unset application
4478fi 4479fi
4479 4480
4480# newer glibc implementations use byteswap.h
4481if [ "$simulator" = "yes" ] || [ "$checkwps" = "yes" ]; then
4482 if test -f "$BYTESWP"; then
4483 echo Using "$BYTESWP"
4484 extradefines="$extradefines -DOS_USE_BYTESWAP_H=$BYTESWP"
4485 fi
4486fi
4487
4488if [ "yes" = "$application" ]; then 4481if [ "yes" = "$application" ]; then
4489 echo Building Rockbox as an Application 4482 echo Building Rockbox as an Application
4490 extradefines="$extradefines -DAPPLICATION" 4483 extradefines="$extradefines -DAPPLICATION"