diff options
Diffstat (limited to 'libatomic/configure.tgt')
-rw-r--r-- | libatomic/configure.tgt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libatomic/configure.tgt b/libatomic/configure.tgt index a3757efbbe2..403906dd786 100644 --- a/libatomic/configure.tgt +++ b/libatomic/configure.tgt @@ -26,6 +26,10 @@ # Map the target cpu to an ARCH sub-directory. At the same time, # work out any special compilation flags as necessary. +# Give operating systems the opportunity to discard XCFLAGS modifications based +# on ${target_cpu}. For example to allow proper use of multilibs. +configure_tgt_pre_target_cpu_XCFLAGS="${XCFLAGS}" + case "${target_cpu}" in alpha*) ARCH=alpha ;; rs6000 | powerpc*) ARCH=powerpc ;; @@ -108,6 +112,11 @@ case "${target}" in config_path="${config_path} posix" ;; + *-*-rtems*) + XCFLAGS="${configure_tgt_pre_target_cpu_XCFLAGS}" + config_path="rtems" + ;; + *-*-elf*) # ??? No target OS. We could be targeting bare-metal kernel-mode, # or user-mode for some custom OS. If the target supports TAS, |