Ticket #9293: AmigaOS4.diff

File AmigaOS4.diff, 1.3 KB (added by raziel-, 10 years ago)
  • configure

     
    252252}
    253253
    254254gcc_get_define() {
    255         echo "" | $CXX -dM -E - | fgrep "$1" | head -n1 | cut -d ' ' -f 3-
     255        # Note: The AmigaOS compiler doesn't like the "-" input file, so a real file
     256        # is used instead
     257        rm -f $TMPC
     258        touch $TMPC
     259        $CXX -dM -E $TMPC | fgrep "$1" | head -n1 | cut -d ' ' -f 3-
     260        rm -f $TMPC
    256261}
    257262
    258263#
     
    15141519echo $_host_os
    15151520case $_host_os in
    15161521        amigaos*)
     1522                CXXFLAGS="$CXXFLAGS -mcrt=newlib -mstrict-align -mcpu=750 -mtune=7400"
     1523                LDFLAGS="$LDFLAGS -mcrt=newlib -use-dynld -L/sdk/local/newlib/lib"
    15171524                # We have to use 'long' for our 4 byte typedef because AmigaOS already typedefs (u)int32
    15181525                # as (unsigned) long, and consequently we'd get a compiler error otherwise.
    15191526                type_4_byte='long'