Changeset 3f414ef
- Timestamp:
- Mar 9, 2017, 2:50:54 PM (8 years ago)
- 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, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 5222605
- Parents:
- 0e7ea335
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
r0e7ea335 r3f414ef 644 644 CXXFLAGS 645 645 CXX 646 CFA_FLAGS 646 647 MACHINE_TYPE 647 648 host_os … … 653 654 build_cpu 654 655 build 655 CFA_FLAGS656 656 CFA_LIBDIR 657 657 CFA_BINDIR … … 3302 3302 3303 3303 3304 3305 cat >>confdefs.h <<_ACEOF3306 #define CFA_FLAGS "${CFAFLAGS}"3307 _ACEOF3308 3309 CFA_FLAGS=${CFAFLAGS}3310 3311 3312 3304 # Make sure we can run config.sub. 3313 3305 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || … … 3382 3374 3383 3375 MACHINE_TYPE=$host_cpu 3376 3377 3378 echo $build_cpu 3379 echo $host_cpu 3380 3381 if ! test "$host_cpu" = "$build_cpu"; then 3382 case $host_cpu in 3383 i386) 3384 CFLAGS+="-m32" 3385 CXXFLAGS+="-m32" 3386 CFAFLAGS+="-m32" 3387 LDFLAGS+="-m32" 3388 ;; 3389 i686) 3390 CFLAGS+="-m32" 3391 CXXFLAGS+="-m32" 3392 CFAFLAGS+="-m32" 3393 LDFLAGS+="-m32" 3394 ;; 3395 x86_64) 3396 CFLAGS+="-m64" 3397 CXXFLAGS+="-m64" 3398 CFAFLAGS+="-m64" 3399 LDFLAGS+="-m64" 3400 ;; 3401 esac 3402 fi 3403 3404 3405 cat >>confdefs.h <<_ACEOF 3406 #define CFA_FLAGS "${CFAFLAGS}" 3407 _ACEOF 3408 3409 CFA_FLAGS=${CFAFLAGS} 3384 3410 3385 3411 -
configure.ac
r0e7ea335 r3f414ef 169 169 AC_SUBST(CFA_LIBDIR, ${cfa_libdir}) 170 170 171 AC_CANONICAL_BUILD 172 AC_CANONICAL_HOST 173 AC_SUBST([MACHINE_TYPE],[$host_cpu]) 174 175 echo $build_cpu 176 echo $host_cpu 177 178 if ! test "$host_cpu" = "$build_cpu"; then 179 case $host_cpu in 180 i386) 181 CFLAGS+="-m32" 182 CXXFLAGS+="-m32" 183 CFAFLAGS+="-m32" 184 LDFLAGS+="-m32" 185 ;; 186 i686) 187 CFLAGS+="-m32" 188 CXXFLAGS+="-m32" 189 CFAFLAGS+="-m32" 190 LDFLAGS+="-m32" 191 ;; 192 x86_64) 193 CFLAGS+="-m64" 194 CXXFLAGS+="-m64" 195 CFAFLAGS+="-m64" 196 LDFLAGS+="-m64" 197 ;; 198 esac 199 fi 200 171 201 AC_DEFINE_UNQUOTED(CFA_FLAGS, "${CFAFLAGS}", [compilation flags for cfa libraries and test programs.]) 172 202 AC_SUBST(CFA_FLAGS, ${CFAFLAGS}) 173 174 AC_CANONICAL_HOST175 AC_SUBST([MACHINE_TYPE],[$host_cpu])176 203 177 204 # Checks for programs.
Note: See TracChangeset
for help on using the changeset viewer.