diff options
Diffstat (limited to 'sim/m32r/configure.in')
-rw-r--r-- | sim/m32r/configure.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sim/m32r/configure.in b/sim/m32r/configure.in index f598f29f09b..12857b9a19b 100644 --- a/sim/m32r/configure.in +++ b/sim/m32r/configure.in @@ -14,4 +14,18 @@ SIM_AC_OPTION_ENVIRONMENT SIM_AC_OPTION_INLINE() SIM_AC_OPTION_CGEN_MAINT + case "${target_alias}" in + m32r*-linux*) + traps_obj=traps-linux.o + sim_extra_cflags="-DM32R_LINUX" + ;; + *) + traps_obj=traps.o + sim_extra_cflags="-DM32R_ELF" + ;; + esac +AC_SUBST(traps_obj) +AC_SUBST(sim_extra_cflags) + + SIM_AC_OUTPUT |