diff options
-rwxr-xr-x | tools/configure | 146 |
1 files changed, 73 insertions, 73 deletions
diff --git a/tools/configure b/tools/configure index 09f2f23a9a..70580dbfe0 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -9,7 +9,7 @@ | |||
9 | # | 9 | # |
10 | 10 | ||
11 | # global CC options for all platforms | 11 | # global CC options for all platforms |
12 | CCOPTS="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes -pipe" | 12 | CCOPTS="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes -pipe -Wl,-z,defs" |
13 | 13 | ||
14 | use_logf="#undef ROCKBOX_HAS_LOGF" | 14 | use_logf="#undef ROCKBOX_HAS_LOGF" |
15 | use_bootchart="#undef DO_BOOTCHART" | 15 | use_bootchart="#undef DO_BOOTCHART" |
@@ -2971,15 +2971,15 @@ if [ "$ARG_RBDIR" ]; then | |||
2971 | fi | 2971 | fi |
2972 | 2972 | ||
2973 | sed > autoconf.h \ | 2973 | sed > autoconf.h \ |
2974 | -e "s,@ENDIAN@,${defendian},g" \ | 2974 | -e "s<@ENDIAN@<${defendian}<g" \ |
2975 | -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \ | 2975 | -e "s<^#undef ROCKBOX_HAS_LOGF<$use_logf<g" \ |
2976 | -e "s,^#undef DO_BOOTCHART,$use_bootchart,g" \ | 2976 | -e "s<^#undef DO_BOOTCHART<$use_bootchart<g" \ |
2977 | -e "s,@config_rtc@,$config_rtc,g" \ | 2977 | -e "s<@config_rtc@<$config_rtc<g" \ |
2978 | -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \ | 2978 | -e "s<@have_rtc_alarm@<$have_rtc_alarm<g" \ |
2979 | -e "s,@RBDIR@,${rbdir},g" \ | 2979 | -e "s<@RBDIR@<${rbdir}<g" \ |
2980 | -e "s,@have_backlight@,$have_backlight,g" \ | 2980 | -e "s<@have_backlight@<$have_backlight<g" \ |
2981 | -e "s,@have_fmradio_in@,$have_fmradio_in,g" \ | 2981 | -e "s<@have_fmradio_in@<$have_fmradio_in<g" \ |
2982 | -e "s,@have_ata_poweroff@,$have_ata_poweroff,g" \ | 2982 | -e "s<@have_ata_poweroff@<$have_ata_poweroff<g" \ |
2983 | <<EOF | 2983 | <<EOF |
2984 | /* This header was made by configure */ | 2984 | /* This header was made by configure */ |
2985 | #ifndef __BUILD_AUTOCONF_H | 2985 | #ifndef __BUILD_AUTOCONF_H |
@@ -3026,8 +3026,8 @@ fi | |||
3026 | 3026 | ||
3027 | if test "$simulator" = "yes"; then | 3027 | if test "$simulator" = "yes"; then |
3028 | # add simul make stuff on the #SIMUL# line | 3028 | # add simul make stuff on the #SIMUL# line |
3029 | simmagic1="s,@SIMUL1@,\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim," | 3029 | simmagic1="s<@SIMUL1@<\$(SILENT)\$(MAKE) -C \$(SIMDIR) OBJDIR=\$(BUILDDIR)/sim<" |
3030 | simmagic2="s,@SIMUL2@,\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim," | 3030 | simmagic2="s<@SIMUL2@<\$(SILENT)\$(MAKE) -C \$(ROOTDIR)/uisimulator/common OBJDIR=\$(BUILDDIR)/comsim<" |
3031 | else | 3031 | else |
3032 | # delete the lines that match | 3032 | # delete the lines that match |
3033 | simmagic1='/@SIMUL1@/D' | 3033 | simmagic1='/@SIMUL1@/D' |
@@ -3059,70 +3059,70 @@ cmdline="$cmdline--target=\$(MODELNAME) --ram=\$(MEMORYSIZE) --rbdir=\$(RBDIR) - | |||
3059 | ### end of cmdline | 3059 | ### end of cmdline |
3060 | 3060 | ||
3061 | sed > Makefile \ | 3061 | sed > Makefile \ |
3062 | -e "s,@ROOTDIR@,${rootdir},g" \ | 3062 | -e "s<@ROOTDIR@<${rootdir}<g" \ |
3063 | -e "s,@DEBUG@,${debug},g" \ | 3063 | -e "s<@DEBUG@<${debug}<g" \ |
3064 | -e "s,@MEMORY@,${memory},g" \ | 3064 | -e "s<@MEMORY@<${memory}<g" \ |
3065 | -e "s,@TARGET_ID@,${target_id},g" \ | 3065 | -e "s<@TARGET_ID@<${target_id}<g" \ |
3066 | -e "s,@TARGET@,${target},g" \ | 3066 | -e "s<@TARGET@<${target}<g" \ |
3067 | -e "s,@CPU@,${t_cpu},g" \ | 3067 | -e "s<@CPU@<${t_cpu}<g" \ |
3068 | -e "s,@MANUFACTURER@,${t_manufacturer},g" \ | 3068 | -e "s<@MANUFACTURER@<${t_manufacturer}<g" \ |
3069 | -e "s,@MODELNAME@,${modelname},g" \ | 3069 | -e "s<@MODELNAME@<${modelname}<g" \ |
3070 | -e "s,@LANGUAGE@,${language},g" \ | 3070 | -e "s<@LANGUAGE@<${language}<g" \ |
3071 | -e "s:@VOICELANGUAGE@:${voicelanguage}:g" \ | 3071 | -e "s:@VOICELANGUAGE@:${voicelanguage}:g" \ |
3072 | -e "s,@PWD@,${pwd},g" \ | 3072 | -e "s<@PWD@<${pwd}<g" \ |
3073 | -e "s,@HOSTCC@,${HOSTCC},g" \ | 3073 | -e "s<@HOSTCC@<${HOSTCC}<g" \ |
3074 | -e "s,@HOSTAR@,${HOSTAR},g" \ | 3074 | -e "s<@HOSTAR@<${HOSTAR}<g" \ |
3075 | -e "s,@CC@,${CC},g" \ | 3075 | -e "s<@CC@<${CC}<g" \ |
3076 | -e "s,@LD@,${LD},g" \ | 3076 | -e "s<@LD@<${LD}<g" \ |
3077 | -e "s,@AR@,${AR},g" \ | 3077 | -e "s<@AR@<${AR}<g" \ |
3078 | -e "s,@AS@,${AS},g" \ | 3078 | -e "s<@AS@<${AS}<g" \ |
3079 | -e "s,@OC@,${OC},g" \ | 3079 | -e "s<@OC@<${OC}<g" \ |
3080 | -e "s,@WINDRES@,${WINDRES},g" \ | 3080 | -e "s<@WINDRES@<${WINDRES}<g" \ |
3081 | -e "s,@DLLTOOL@,${DLLTOOL},g" \ | 3081 | -e "s<@DLLTOOL@<${DLLTOOL}<g" \ |
3082 | -e "s,@DLLWRAP@,${DLLWRAP},g" \ | 3082 | -e "s<@DLLWRAP@<${DLLWRAP}<g" \ |
3083 | -e "s,@RANLIB@,${RANLIB},g" \ | 3083 | -e "s<@RANLIB@<${RANLIB}<g" \ |
3084 | -e "s,@TOOL@,${tool},g" \ | 3084 | -e "s<@TOOL@<${tool}<g" \ |
3085 | -e "s,@BMP2RB_NATIVE@,${bmp2rb_native},g" \ | 3085 | -e "s<@BMP2RB_NATIVE@<${bmp2rb_native}<g" \ |
3086 | -e "s,@BMP2RB_MONO@,${bmp2rb_mono},g" \ | 3086 | -e "s<@BMP2RB_MONO@<${bmp2rb_mono}<g" \ |
3087 | -e "s,@BMP2RB_REMOTENATIVE@,${bmp2rb_remotenative},g" \ | 3087 | -e "s<@BMP2RB_REMOTENATIVE@<${bmp2rb_remotenative}<g" \ |
3088 | -e "s,@BMP2RB_REMOTEMONO@,${bmp2rb_remotemono},g" \ | 3088 | -e "s<@BMP2RB_REMOTEMONO@<${bmp2rb_remotemono}<g" \ |
3089 | -e "s,@OUTPUT@,${output},g" \ | 3089 | -e "s<@OUTPUT@<${output}<g" \ |
3090 | -e "s,@APPEXTRA@,${appextra},g" \ | 3090 | -e "s<@APPEXTRA@<${appextra}<g" \ |
3091 | -e "s,@ARCHOSROM@,${archosrom},g" \ | 3091 | -e "s<@ARCHOSROM@<${archosrom}<g" \ |
3092 | -e "s,@FLASHFILE@,${flash},g" \ | 3092 | -e "s<@FLASHFILE@<${flash}<g" \ |
3093 | -e "s,@PLUGINS@,${plugins},g" \ | 3093 | -e "s<@PLUGINS@<${plugins}<g" \ |
3094 | -e "s,@CODECS@,${swcodec},g" \ | 3094 | -e "s<@CODECS@<${swcodec}<g" \ |
3095 | -e "s,@PROFILE_OPTS@,${PROFILE_OPTS},g" \ | 3095 | -e "s<@PROFILE_OPTS@<${PROFILE_OPTS}<g" \ |
3096 | -e "s,@SHARED_FLAG@,${SHARED_FLAG},g" \ | 3096 | -e "s<@SHARED_FLAG@<${SHARED_FLAG}<g" \ |
3097 | -e "s,@GCCOPTS@,${GCCOPTS},g" \ | 3097 | -e "s<@GCCOPTS@<${GCCOPTS}<g" \ |
3098 | -e "s,@TARGET_INC@,${TARGET_INC},g" \ | 3098 | -e "s<@TARGET_INC@<${TARGET_INC}<g" \ |
3099 | -e "s!@LDOPTS@!${LDOPTS}!g" \ | 3099 | -e "s<@LDOPTS@<${LDOPTS}<g" \ |
3100 | -e "s,@LOADADDRESS@,${loadaddress},g" \ | 3100 | -e "s<@LOADADDRESS@<${loadaddress}<g" \ |
3101 | -e "s,@EXTRADEF@,${extradefines},g" \ | 3101 | -e "s<@EXTRADEF@<${extradefines}<g" \ |
3102 | -e "s,@APPSDIR@,${appsdir},g" \ | 3102 | -e "s<@APPSDIR@<${appsdir}<g" \ |
3103 | -e "s,@FIRMDIR@,${firmdir},g" \ | 3103 | -e "s<@FIRMDIR@<${firmdir}<g" \ |
3104 | -e "s,@TOOLSDIR@,${toolsdir},g" \ | 3104 | -e "s<@TOOLSDIR@<${toolsdir}<g" \ |
3105 | -e "s,@APPS@,${apps},g" \ | 3105 | -e "s<@APPS@<${apps}<g" \ |
3106 | -e "s,@SIMVER@,${simver},g" \ | 3106 | -e "s<@SIMVER@<${simver}<g" \ |
3107 | -e "s,@GCCVER@,${gccver},g" \ | 3107 | -e "s<@GCCVER@<${gccver}<g" \ |
3108 | -e "s,@GCCNUM@,${gccnum},g" \ | 3108 | -e "s<@GCCNUM@<${gccnum}<g" \ |
3109 | -e "s,@UNAME@,${uname},g" \ | 3109 | -e "s<@UNAME@<${uname}<g" \ |
3110 | -e "s,@ENDIAN@,${defendian},g" \ | 3110 | -e "s<@ENDIAN@<${defendian}<g" \ |
3111 | -e "s,@TOOLSET@,${toolset},g" \ | 3111 | -e "s<@TOOLSET@<${toolset}<g" \ |
3112 | -e "${simmagic1}" \ | 3112 | -e "${simmagic1}" \ |
3113 | -e "${simmagic2}" \ | 3113 | -e "${simmagic2}" \ |
3114 | -e "s,@MANUALDEV@,${manualdev},g" \ | 3114 | -e "s<@MANUALDEV@<${manualdev}<g" \ |
3115 | -e "s,@ENCODER@,${ENC_CMD},g" \ | 3115 | -e "s<@ENCODER@<${ENC_CMD}<g" \ |
3116 | -e "s,@ENC_OPTS@,${ENC_OPTS},g" \ | 3116 | -e "s<@ENC_OPTS@<${ENC_OPTS}<g" \ |
3117 | -e "s,@TTS_ENGINE@,${TTS_ENGINE},g" \ | 3117 | -e "s<@TTS_ENGINE@<${TTS_ENGINE}<g" \ |
3118 | -e "s,@TTS_OPTS@,${TTS_OPTS},g" \ | 3118 | -e "s<@TTS_OPTS@<${TTS_OPTS}<g" \ |
3119 | -e "s,@VOICETOOLSET@,${voicetoolset},g" \ | 3119 | -e "s<@VOICETOOLSET@<${voicetoolset}<g" \ |
3120 | -e "s,@LANGS@,${buildlangs},g" \ | 3120 | -e "s<@LANGS@<${buildlangs}<g" \ |
3121 | -e "s,@USE_ELF@,${USE_ELF},g" \ | 3121 | -e "s<@USE_ELF@<${USE_ELF}<g" \ |
3122 | -e "s,@RBDIR@,${rbdir},g" \ | 3122 | -e "s<@RBDIR@<${rbdir}<g" \ |
3123 | -e "s,@PREFIX@,$PREFIX,g" \ | 3123 | -e "s<@PREFIX@<$PREFIX<g" \ |
3124 | -e "s,@CMDLINE@,$cmdline,g" \ | 3124 | -e "s<@CMDLINE@<$cmdline<g" \ |
3125 | -e "s,@SDLCONFIG@,$sdl,g" \ | 3125 | -e "s<@SDLCONFIG@<$sdl<g" \ |
3126 | <<EOF | 3126 | <<EOF |
3127 | ## Automatically generated. http://www.rockbox.org/ | 3127 | ## Automatically generated. http://www.rockbox.org/ |
3128 | 3128 | ||