]> sourceware.org Git - newlib-cygwin.git/blob - newlib/configure.host
Define PREFER_SIZE_OVER_SPEED for xStormy16 target
[newlib-cygwin.git] / newlib / configure.host
1 # configure.host
2
3 # This shell script handles all host based configuration for newlib.
4 # It sets various shell variables based on the the host and the
5 # configuration options. You can modify this shell script without
6 # needing to rerun autoconf.
7
8 # This shell script should be invoked as
9 # . configure.host
10 # If it encounters an error, it will exit with a message.
11
12 # FIXME: This script is too complicated. It does things in too many
13 # different ways. This was taken from the old Cygnus configure script
14 # with only minor changes. It should be cleaned up.
15
16 # FIXME: The general approach of picking and choosing which
17 # directories to configure, other than machine_dir and sys_dir, is
18 # potentially confusing.
19
20 # It uses the following shell variables:
21 # host The configuration host
22 # host_cpu The configuration host CPU
23 # newlib_mb --enable-newlib-mb ("yes", "no")
24 # target_optspace --enable-target-optspace ("yes", "no", "")
25 # newlib_multithread --enable-newlib-multithread ("yes", "no", "yes")
26 # newlib_elix_level --enable-newlib-elix-level ("1","2","3","4") ("4")
27 # newlib_io_long_long --enable-newlib-io-long-long ("yes", "no", "")
28 # newlib_io_long_double --enable-newlib-io-long-double ("yes", "no", "")
29
30 # It sets the following shell variables:
31 # newlib_cflags Special CFLAGS to use when building
32 # machine_dir Subdirectory of libc/machine to configure
33 # sys_dir Subdirectory of libc/sys to configure
34 # have_sys_mach_dir Is there a machine subdirectory in sys subdirectory
35 # posix_dir "posix" to build libc/posix, "" otherwise
36 # signal_dir "signal" to build libc/signal, "" otherwise
37 # stdio64_dir "stdio64" to build libc/stdio64, "" otherwise
38 # syscall_dir "syscalls" to build libc/syscalls, "" otherwise
39 # unix_dir "unix" to build libc/unix, "" otherwise
40 # use_libtool flag: use libtool to build newlib?
41 # aext library extension - needed for libtool support
42 # oext object file extension - needed for libtool support
43 # crt1 name of crt1 object if one is provided
44 # crt1_dir directory where crt1 object is found
45
46 newlib_cflags=
47 libm_machine_dir=
48 machine_dir=
49 sys_dir=
50 posix_dir=
51 signal_dir=signal
52 stdio64_dir=
53 syscall_dir=
54 unix_dir=
55 mach_add_setjmp=
56 crt1=
57 crt1_dir=
58 use_libtool=no
59 have_sys_mach_dir=no
60 default_newlib_io_long_long=no
61 default_newlib_io_long_double=no
62 default_newlib_io_pos_args=no
63 aext=a
64 oext=o
65
66 case "${target_optspace}:${host}" in
67 yes:*)
68 newlib_cflags="${newlib_cflags} -Os"
69 ;;
70 :m32r-* | :d10v-* | :d30v-* | :avr-*)
71 newlib_cflags="${newlib_cflags} -Os"
72 ;;
73 no:* | :*)
74 newlib_cflags="${newlib_cflags} -O2"
75 ;;
76 esac
77
78 # Get the source directories to use for the CPU type.
79 # machine_dir should supply CPU dependent routines, such as setjmp.
80 # newlib_cflags is passed to gcc when compiling.
81 # THIS TABLE IS ALPHA SORTED. KEEP IT THAT WAY.
82
83 case "${host_cpu}" in
84 a29k)
85 machine_dir=a29k
86 ;;
87 arc)
88 machine_dir=
89 ;;
90 arm)
91 machine_dir=arm
92 ;;
93 avr*)
94 newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -mcall-prologues"
95 ;;
96 d10v*)
97 machine_dir=d10v
98 ;;
99 d30v*)
100 machine_dir=d30v
101 ;;
102 ep9312)
103 machine_dir=arm
104 ;;
105 fr30)
106 machine_dir=fr30
107 ;;
108 frv)
109 machine_dir=frv
110 ;;
111 h8300)
112 machine_dir=h8300
113 ;;
114 h8500)
115 machine_dir=h8500
116 ;;
117 hppa*)
118 machine_dir=hppa
119 ;;
120 i960)
121 machine_dir=i960
122 ;;
123 i[34567]86)
124 # Don't use for these since they provide their own setjmp.
125 case ${host} in
126 *-*-sco* | *-*-cygwin*)
127 libm_machine_dir=i386
128 machine_dir=i386
129 ;;
130 *)
131 libm_machine_dir=i386
132 machine_dir=i386
133 mach_add_setjmp=true
134 ;;
135 esac
136 ;;
137 ia64*)
138 ;;
139 iq2000)
140 machine_dir=iq2000
141 ;;
142 m32r*)
143 machine_dir=m32r
144 ;;
145
146 m68hc11|m6811|m68hc12|m6812)
147 machine_dir=m68hc11
148 newlib_cflags="-DPREFER_SIZE_OVER_SPEED -Os -mrelax"
149 CFLAGS="-g -Os"
150 ;;
151
152 m68*)
153 machine_dir=m68k
154 newlib_cflags="${newlib_cflags} -DCOMPACT_CTYPE"
155 ;;
156 m88k)
157 machine_dir=m88k
158 newlib_cflags="${newlib_cflags} -m88000"
159 ;;
160 m88110)
161 machine_dir=m88k
162 newlib_cflags="${newlib_cflags} -m88110"
163 ;;
164 mcore)
165 ;;
166 mips*)
167 machine_dir=mips
168 ;;
169 mmix)
170 ;;
171 mn10200)
172 machine_dir=mn10200
173 ;;
174 mn10300)
175 machine_dir=mn10300
176 ;;
177 or16)
178 ;;
179 or32)
180 ;;
181 powerpc*)
182 machine_dir=powerpc
183 ;;
184 sh | sh64)
185 machine_dir=sh
186 ;;
187 sparc*)
188 machine_dir=sparc
189 # FIXME: Might wish to make MALLOC_ALIGNMENT more generic.
190 newlib_cflags="${newlib_cflags} -DMALLOC_ALIGNMENT=8"
191 ;;
192 strongarm)
193 machine_dir=arm
194 ;;
195 xscale)
196 machine_dir=xscale
197 ;;
198 thumb)
199 machine_dir=arm
200 ;;
201 tic4x|c4x)
202 machine_dir=tic4x
203 ;;
204 tic80*)
205 machine_dir=tic80
206 ;;
207 v70)
208 ;;
209 v810)
210 ;;
211 v850)
212 machine_dir=v850
213 newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -mv850 "
214 ;;
215 v850e)
216 machine_dir=v850
217 newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED "
218 ;;
219 w65*)
220 machine_dir=w65
221 ;;
222 xstormy16)
223 machine_dir=xstormy16
224 newlib_cflags="${newlib_cflags} -DMALLOC_PROVIDED"
225 newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED"
226 ;;
227 z8k)
228 machine_dir=z8k
229 ;;
230 *)
231 echo '***' "Newlib does not support CPU ${host_cpu}" 1>&2
232 exit 1
233 ;;
234 esac
235
236 # Disable thread support if requested.
237
238 if [ "${newlib_multithread}" = "no" ] ; then
239 newlib_cflags="${newlib_cflags} -D__SINGLE_THREAD__"
240 fi
241
242 # Disable syscall support if requested.
243
244 if [ "${newlib_may_supply_syscalls}" = "no" ] ; then
245 newlib_cflags="${newlib_cflags} -D__NO_SYSCALLS__"
246 fi
247
248 # Enable multibyte support if requested or it is defaulted
249 # for target.
250
251 if [ "x${newlib_mb}" = "x" ]; then
252 case "${host}" in
253 i[34567]86-pc-linux-*|*-*-cygwin*)
254 newlib_mb=yes
255 ;;
256 esac
257 fi
258
259 # Disable printf/scanf floating-point support if requested.
260
261 if [ "${newlib_io_float}" = "no" ] ; then
262 newlib_cflags="${newlib_cflags} -DNO_FLOATING_POINT"
263 fi
264
265 # Verify if shared newlib support is allowed and set appropriate variables
266 # We don't want to use libtool for platforms that we are not going to
267 # support shared libraries. This is because it adds executable tests which
268 # we don't want for most embedded platforms.
269 case "${host}" in
270 i[34567]86-pc-linux-*)
271 use_libtool=yes
272 have_sys_mach_dir=yes
273 stdio64_dir=stdio64
274 oext=lo
275 aext=la ;;
276 *) ;; #shared library not supported for ${host}
277 esac
278
279 # Get the source directories to use for the host. unix_dir is set
280 # to unix to get some standard Unix routines. posix_dir is set to get some
281 # standard Posix routines. sys_dir should supply system dependent routines
282 # including crt0.
283 # THIS TABLE IS ALPHA SORTED. KEEP IT THAT WAY.
284
285 case "${host}" in
286 *-*-cygwin*)
287 posix_dir=posix
288 stdio64_dir=stdio64
289 ;;
290 *-*-netware*)
291 signal_dir=
292 sys_dir=netware
293 ;;
294 *-*-rtems*) # generic RTEMS support
295 sys_dir=rtems
296 # RTEMS POSIX support is all inside RTEMS
297 ;;
298 a29k-*-*)
299 sys_dir=a29khif
300 signal_dir=
301 ;;
302 arc-*-*)
303 sys_dir=arc
304 ;;
305 arm-*-*)
306 if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
307 sys_dir=arm
308 fi
309 ;;
310 d10v*)
311 sys_dir=d10v
312 ;;
313 d30v*)
314 sys_dir=
315 ;;
316 ep9312-*-*)
317 if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
318 sys_dir=arm
319 fi
320 ;;
321 frv*)
322 sys_dir=
323 ;;
324 h8300-*-hms*)
325 sys_dir=h8300hms
326 ;;
327 h8300-*-elf*)
328 sys_dir=h8300hms
329 ;;
330 h8300-*-coff*)
331 sys_dir=h8300hms
332 ;;
333 h8300-*-xray*)
334 sys_dir=h8300xray
335 ;;
336 h8500-*-hms*)
337 sys_dir=h8500hms
338 ;;
339 h8500-*-elf*)
340 sys_dir=h8500hms
341 ;;
342 i[34567]86-*-sco*)
343 sys_dir=sysvi386
344 unix_dir=unix
345 ;;
346 i[34567]86-pc-linux-*)
347 sys_dir=linux
348 unix_dir=unix
349 posix_dir=posix
350 crt1=crt1.o
351 crt1_dir=libc/sys/${sys_dir}
352 gcc_dir=`gcc -print-search-dirs | awk '/^install:/{print $2}'`
353 default_newlib_io_long_double="yes"
354 default_newlib_io_long_long="yes"
355 default_newlib_io_pos_args="yes"
356 #newlib_cflags="${newlib_cflags} -Werror" # DEBUGGING ONLY;BREAKS BUILD
357 newlib_cflags="${newlib_cflags} -Wall"
358 newlib_cflags="${newlib_cflags} -D_I386MACH_ALLOW_HW_INTERRUPTS"
359 newlib_cflags="${newlib_cflags} -DHAVE_FCNTL"
360 # --- Required when building a shared library ------------------------
361 newlib_cflags="${newlib_cflags} -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION"
362 # --- The three lines below are optional ------------------------------
363 ##newlib_cflags="${newlib_cflags} -nostdinc"
364 ##newlib_cflags="${newlib_cflags} -I`newlib-flags --kernel-dir`/include"
365 ##newlib_cflags="${newlib_cflags} -idirafter ${gcc_dir}include"
366 ;;
367
368 m68hc11-*-*|m6811-*-*|m6812-*-*|m68hc12-*-*)
369 ;;
370
371 m68k-sun-sunos*)
372 unix_dir=unix
373 ;;
374 m8*-bug-*)
375 sys_dir=m88kbug
376 ;;
377 mips*-dec-*)
378 sys_dir=decstation
379 ;;
380 mmix-knuth-mmixware)
381 sys_dir=mmixware
382 ;;
383 powerpcle-*-pe)
384 posix_dir=posix
385 ;;
386 sh*-*)
387 sys_dir=sh
388 ;;
389 sparc-sun-sunos*)
390 sys_dir=sun4
391 unix_dir=unix
392 ;;
393 sparc64*)
394 sys_dir=sparc64
395 unix_dir=unix
396 ;;
397 strongarm-*-*)
398 if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
399 sys_dir=arm
400 fi
401 ;;
402 thumb-*-*)
403 if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
404 sys_dir=arm
405 fi
406 ;;
407 tic80*)
408 sys_dir=tic80
409 ;;
410 v70-nec-*)
411 sys_dir=sysvnecv70
412 ;;
413 v810-*-*)
414 sys_dir=sysnec810
415 ;;
416 v850-*-*)
417 sys_dir=sysnecv850
418 ;;
419 v850e-*-*)
420 sys_dir=sysnecv850
421 ;;
422 v850ea-*-*)
423 sys_dir=sysnecv850
424 ;;
425 w65-*-*)
426 sys_dir=w65
427 ;;
428 xscale-*-*)
429 if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
430 sys_dir=arm
431 fi
432 ;;
433 z8k-*-coff)
434 sys_dir=z8ksim
435 ;;
436 esac
437
438 # Host specific flag settings -- usually for features that are not
439 # general enough or broad enough to be handled above.
440 # THIS TABLE IS ALPHA SORTED. KEEP IT THAT WAY.
441
442 case "${host}" in
443 *-*-cygwin*)
444 test -z "$cygwin_srcdir" && cygwin_srcdir=`cd ${srcdir}/../winsup/cygwin; pwd`
445 export cygwin_srcdir
446 default_newlib_io_long_long="yes"
447 default_newlib_io_long_double="yes"
448 default_newlib_io_pos_args="yes"
449 newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME -DSIGNAL_PROVIDED -D_COMPILING_NEWLIB -DHAVE_FCNTL -DMALLOC_PROVIDED -I${cygwin_srcdir}/include"
450 syscall_dir=syscalls
451 ;;
452 # RTEMS supplies its own versions of some routines:
453 # malloc() (reentrant version)
454 # exit() RTEMS has a "global" reent to flush
455 # signal()/raise() RTEMS has its own including pthread signals
456 # _XYZ_r() RTEMS has its own reentrant routines
457 #
458 # NOTE: When newlib malloc uses a semaphore, RTEMS will switch to that.
459 *-*-rtems*)
460 default_newlib_io_long_long="yes"
461 newlib_cflags="${newlib_cflags} -DHAVE_GETTIMEOFDAY -DMALLOC_PROVIDED -DEXIT_PROVIDED -DMISSING_SYSCALL_NAMES -DSIGNAL_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_OPENDIR -DNO_EXEC -DHAVE_FCNTL"
462 ;;
463 # VxWorks supplies its own version of malloc, and the newlib one
464 # doesn't work because VxWorks does not have sbrk.
465 *-wrs-vxworks*)
466 newlib_cflags="${newlib_cflags} -DMALLOC_PROVIDED -DMISSING_SYSCALL_NAMES -DHAVE_FCNTL"
467 ;;
468 # UDI doesn't have exec, so system() should fail the right way
469 a29k-amd-udi)
470 newlib_cflags="${newlib_cflags} -DNO_EXEC"
471 syscall_dir=syscalls
472 ;;
473 arc-*-*)
474 syscall_dir=syscalls
475 ;;
476 arm-*-pe)
477 syscall_dir=syscalls
478 newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
479 ;;
480 arm-*-*)
481 syscall_dir=syscalls
482 newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
483 # If newlib is supplying syscalls, select which debug protocol is being used.
484 # ARM_RDP_MONITOR selects the Demon monitor.
485 # ARM_RDI_MONITOR selects the Angel monitor.
486 # If neither are defined, then hard coded defaults will be used
487 # to create the program's environment.
488 # If --disable-newlib-supplied-syscalls is specified, then the end-user
489 # may specify the protocol via gcc spec files supplied by libgloss.
490 # See also thumb below.
491 if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
492 # newlib_cflags="${newlib_cflags} -DARM_RDP_MONITOR"
493 newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR"
494 fi
495 ;;
496 avr*)
497 newlib_cflags="${newlib_cflags} -DNO_EXEC -DSMALL_MEMORY -DMISSING_SYSCALL_NAMES"
498 ;;
499 d10v*)
500 newlib_cflags="${newlib_cflags} -DSMALL_MEMORY"
501 syscall_dir=syscalls
502 ;;
503 d30v*)
504 newlib_cflags="${newlib_cflags} -DABORT_MESSAGE -DSMALL_MEMORY -DMISSING_SYSCALL_NAMES"
505 syscall_dir=
506 ;;
507 ep9312-*-*)
508 syscall_dir=syscalls
509 newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
510 if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
511 newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR"
512 fi
513 ;;
514 fr30-*-*)
515 syscall_dir=syscalls
516 ;;
517 frv-*-*)
518 syscall_dir=syscalls
519 default_newlib_io_long_long="yes"
520 ;;
521 h8300*-*-*)
522 syscall_dir=syscalls
523 newlib_cflags="${newlib_cflags} -DSMALL_DTOA -DSMALL_MEMORY"
524 # Simulator only extensions for H8300.
525 # Uncomment the next line to enable them.
526 # newlib_cflags="${newlib_cflags} -D__SIMULATOR__"
527 ;;
528 h8500-*-*)
529 syscall_dir=syscalls
530 newlib_cflags="${newlib_cflags} -DSMALL_DTOA -DSMALL_MEMORY"
531 ;;
532 i[34567]86-*-sco*)
533 newlib_cflags="${newlib_cflags} -DSIGNAL_PROVIDED -DHAVE_FCNTL"
534 ;;
535 i[34567]86-*-netware*)
536 newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES -DNO_EXEC -DABORT_PROVIDED -DCLOCK_PROVIDED -DMALLOC_PROVIDED -DHAVE_FCNTL"
537 ;;
538 iq2000*)
539 syscall_dir=syscalls
540 default_newlib_io_long_long="yes"
541 ;;
542 m32r-*-*)
543 # Pass -msdata=sdata so _impure_ptr goes in .sdata.
544 # We don't generate sda relocs however for upward compatibility.
545 # FIXME: This is necessary because the default multilib doesn't
546 # use --print-multi-lib.
547 newlib_cflags="${newlib_cflags} -msdata=sdata"
548 syscall_dir=syscalls
549 ;;
550 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
551 newlib_cflags="${newlib_cflags} -DNO_EXEC -DABORT_PROVIDED -DSMALL_MEMORY -DMISSING_SYSCALL_NAMES"
552 ;;
553 mcore-*-*)
554 syscall_dir=syscalls
555 ;;
556 mips64vr*-*-*)
557 default_newlib_io_long_long="yes"
558 newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
559 ;;
560 mips*-*-elf*)
561 default_newlib_io_long_long="yes"
562 newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
563 ;;
564 mmix-*)
565 syscall_dir=syscalls
566 # We need every symbol 32-bit aligned, so the invalid
567 # construct with attribute ((alias ("_ctype_b+127"))) breaks.
568 newlib_cflags="${newlib_cflags} -DCOMPACT_CTYPE"
569 ;;
570 mn10?00-*-*)
571 syscall_dir=syscalls
572 ;;
573 powerpc*-*-eabialtivec*)
574 default_newlib_io_long_long="yes"
575 newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
576 ;;
577 powerpc*-*-eabispe*)
578 default_newlib_io_long_long="yes"
579 newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
580 ;;
581 powerpc*-*-eabi* | \
582 powerpc*-*-elf* | \
583 powerpc*-*-linux* | \
584 powerpc*-*-rtem* | \
585 powerpc*-*-sysv* | \
586 powerpc*-*-solaris*)
587 default_newlib_io_long_long="yes"
588 newlib_cflags="${newlib_cflags} -mrelocatable-lib -mno-eabi -mstrict-align -DMISSING_SYSCALL_NAMES"
589 ;;
590 powerpcle-*-pe)
591 newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME -DHAVE_FCNTL"
592 syscall_dir=syscalls
593 ;;
594 sh*-*-*)
595 default_newlib_io_long_long="yes"
596 newlib_cflags="${newlib_cflags} -DHAVE_GETTIMEOFDAY"
597 syscall_dir=syscalls
598 ;;
599 sparc-sun-sunos*)
600 newlib_cflags="${newlib_cflags} -DSIGNAL_PROVIDED"
601 ;;
602 sparc64-*-*)
603 newlib_cflags="${newlib_cflags} -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_BLKSIZE -DHAVE_GETTIMEOFDAY -DHAVE_FCNTL"
604 # This either belongs elsewhere or nowhere. But I need *something*,
605 # so for now it's here ...
606 case "${host_os}" in
607 aoutv8 | *32p)
608 newlib_cflags="${newlib_cflags} -DTARGET_PTR_SIZE=32" ;;
609 *)
610 newlib_cflags="${newlib_cflags} -DTARGET_PTR_SIZE=64" ;;
611 esac
612 ;;
613 strongarm-*-*)
614 syscall_dir=syscalls
615 newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
616 ;;
617 thumb-*-pe)
618 syscall_dir=syscalls
619 newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
620 # Don't use the debugging protocols just yet.
621 ;;
622 thumb-*-*)
623 syscall_dir=syscalls
624 newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
625 # If newlib is supplying syscalls, select which debug protocol is being used.
626 # ARM_RDP_MONITOR selects the Demon monitor.
627 # ARM_RDI_MONITOR selects the Angel monitor.
628 # If neither are defined, then hard coded defaults will be used
629 # to create the program's environment.
630 # If --disable-newlib-supplied-syscalls is specified, then the end-user
631 # may specify the protocol via gcc spec files supplied by libgloss.
632 if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
633 # newlib_cflags="${newlib_cflags} -DARM_RDP_MONITOR"
634 newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR"
635 fi
636 ;;
637 tic80*)
638 syscall_dir=syscalls
639 ;;
640 v850-*-*)
641 syscall_dir=syscalls
642 ;;
643 v850e-*-*)
644 syscall_dir=syscalls
645 ;;
646 v850ea-*-*)
647 syscall_dir=syscalls
648 ;;
649 w65-*-*)
650 syscall_dir=syscalls
651 newlib_cflags="${newlib_cflags} -DSMALL_DTOA -DSMALL_MEMORY"
652 ;;
653 xscale-*-*)
654 syscall_dir=syscalls
655 newlib_cflags="${newlib_cflags} -DABORT_PROVIDED -DHAVE_GETTIMEOFDAY"
656 newlib_cflags="${newlib_cflags} -DHAVE_SYSTEM -DHAVE_RENAME"
657 if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
658 newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR"
659 fi
660 ;;
661 xstormy16-*-*)
662 newlib_cflags="${newlib_cflags} -DHAVE_GETTIMEOFDAY"
663 syscall_dir=syscalls
664 ;;
665 z8k-*-*)
666 syscall_dir=syscalls
667 ;;
668 *)
669 newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
670 syscall_dir=
671 ;;
672 esac
673
674 # Use defaults for certain settings if not specified by user
675
676 # Enable long long support in I/O routines if requested.
677 if [ "x${newlib_io_long_long}" = "x" ]; then
678 if [ ${default_newlib_io_long_long} = "yes" ]; then
679 newlib_io_long_long="yes";
680 fi
681 fi
682
683 # Enable long double support in I/O routines if requested.
684 if [ "x${newlib_io_long_double}" = "x" ]; then
685 if [ ${default_newlib_io_long_double} = "yes" ]; then
686 newlib_io_long_double="yes";
687 fi
688 fi
689
690 # Enable printf positional argument support if requested.
691 if [ "x${newlib_io_pos_args}" = "x" ]; then
692 if [ ${default_newlib_io_pos_args} = "yes" ]; then
693 newlib_io_pos_args="yes";
694 fi
695 fi
This page took 0.066936 seconds and 6 git commands to generate.