summaryrefslogtreecommitdiff
path: root/tools/configure
diff options
context:
space:
mode:
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure14
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/configure b/tools/configure
index 364a3d707e..c56f28edba 100755
--- a/tools/configure
+++ b/tools/configure
@@ -48,19 +48,29 @@ simcc () {
48 # default tool setup for native building 48 # default tool setup for native building
49 prefixtools "" 49 prefixtools ""
50 50
51 GCCOPTS='-W -Wall -g -fno-builtin -I$(ROOTDIR)/uisimulator/common -I$(ROOTDIR)/uisimulator/$(SIMVER)' 51 GCCOPTS='-W -Wall -g -fno-builtin'
52 52
53 output="rockboxui" # use this as default output binary name 53 output="rockboxui" # use this as default output binary name
54 54
55 case $uname in 55 case $uname in
56 CYGWIN*) 56 CYGWIN*)
57 echo "Cygwin host detected" 57 echo "Cygwin host detected"
58 LDOPTS='-L/usr/X11R6/lib -lSM -lICE -lXt -lX11 -lXmu -lSM -lICE -lX11 -lpthread' 58
59 if [ "$simver" = "win32" ]; then
60 # win32 version
61 GCCOPTS="$GCCOPTS -mno-cygwin -DNOCYGWIN"
62 LDOPTS="-lgdi32 -luser32 -mno-cygwin"
63 else
64 # x11 version
65 GCCOPTS="$GCCOPTS -DNOCYGWIN"
66 LDOPTS='-L/usr/X11R6/lib -lSM -lICE -lXt -lX11 -lXmu -lSM -lICE -lX11 -lpthread'
67 fi
59 output="rockboxui.exe" # use this as output binary name 68 output="rockboxui.exe" # use this as output binary name
60 ;; 69 ;;
61 70
62 Linux) 71 Linux)
63 echo "Linux host detected" 72 echo "Linux host detected"
73 GCCOPTS="$GCCOPTS"
64 LDOPTS='-L/usr/X11R6/lib -lX11 -lm -lXt -lXmu -lnsl -ldl -lpthread' 74 LDOPTS='-L/usr/X11R6/lib -lX11 -lm -lXt -lXmu -lnsl -ldl -lpthread'
65 if [ "$simver" = "win32" ]; then 75 if [ "$simver" = "win32" ]; then
66 crosswincc # setup cross-compiler 76 crosswincc # setup cross-compiler