Ignore:
Timestamp:
Aug 9, 2018, 11:07:05 AM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
7a7ab42
Parents:
a5121bf
Message:

Cross compilation appears to be working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/configure.ac

    ra5121bf r575a6e5  
    55AC_INIT([cfa-cc],[1.0.0.0],[cforall@plg.uwaterloo.ca])
    66AC_CONFIG_AUX_DIR([./automake])
     7AM_SILENT_RULES([yes])
    78
    89m4_include([../automake/cfa.m4])
    910
    1011AM_INIT_AUTOMAKE([subdir-objects])
     12
     13# don't use the default CFLAGS as they unconditonnaly add -O2
     14: ${CFLAGS=""}
    1115
    1216# Allow program name tansformation
     
    2327AC_SUBST(CFACPP)
    2428
     29#==============================================================================
     30#Handle specific flags
    2531case $ARCHITECTURE in
    2632        "x64"        ) ARCH_FLAGS="-m64";;
     
    3036
    3137AC_SUBST(ARCH_FLAGS)
     38
     39case $CONFIGURATION in
     40        "debug"   )
     41                CONFIG_CFLAGS="-O0 -g"
     42                CONFIG_CFAFLAGS="-debug"
     43        ;;
     44        "nodebug" )
     45                CONFIG_CFLAGS="-O2 -s"
     46                CONFIG_CFAFLAGS="-nodebug"
     47        ;;
     48        "nolib"   )
     49                CONFIG_CFLAGS=""
     50                CONFIG_CFAFLAGS=""
     51        ;;
     52esac
     53
     54AC_SUBST(CONFIG_CFLAGS)
     55AC_SUBST(CONFIG_CFAFLAGS)
    3256
    3357#==============================================================================
Note: See TracChangeset for help on using the changeset viewer.