Changes in driver/cfa.cc [b32ad080:def9d4e]
- File:
-
- 1 edited
-
driver/cfa.cc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
driver/cfa.cc
rb32ad080 rdef9d4e 10 10 // Created On : Tue Aug 20 13:44:49 2002 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Sep 14 23:02:59 201813 // Update Count : 2 7712 // Last Modified On : Tue Jan 15 20:56:03 2019 13 // Update Count : 280 14 14 // 15 15 … … 357 357 358 358 string arch = m32 ? CFA_32_CPU : (m64 ? CFA_64_CPU : CFA_DEFAULT_CPU); 359 if ( ! m32 && ! m64 && arch == "x86" ) { // no override and 32-bit architecture 360 args[nargs] = "-m32"; 361 nargs += 1; 359 if ( ! m32 && ! m64 ) { 360 if ( arch == "x86" ) { 361 args[nargs] = "-m32"; 362 nargs += 1; 363 } else if ( arch == "x64" ) { 364 args[nargs] = "-m64"; 365 nargs += 1; 366 } // if 362 367 } // if 363 368 const char * config = debug ? "debug": "nodebug"; … … 379 384 nargs += 1; 380 385 386 for ( int i = 0; i < nlibs; i += 1 ) { // copy non-user libraries after all user libraries 387 args[nargs] = libs[i]; 388 nargs += 1; 389 } // for 390 381 391 if ( link ) { 382 392 args[nargs] = "-Xlinker"; … … 398 408 399 409 // include the cfa library in case it's needed 400 args[nargs] = ( *new string( string("-L" ) + libdir + (intree ? "/src" : "")) ).c_str(); 410 args[nargs] = ( *new string( string("-L" ) + libdir + (intree ? "/src/.libs" : "")) ).c_str(); 411 nargs += 1; 412 args[nargs] = ( *new string( string("-Wl,-rpath," ) + libdir + (intree ? "/src/.libs" : "")) ).c_str(); 401 413 nargs += 1; 402 414 args[nargs] = "-lcfa"; … … 407 419 nargs += 1; 408 420 args[nargs] = "-lrt"; 421 nargs += 1; 422 args[nargs] = "-lm"; 409 423 nargs += 1; 410 424 } // if … … 491 505 args[nargs] = ( *new string( string("-B") + Bprefix ) ).c_str(); 492 506 nargs += 1; 493 args[nargs] = "-lm";494 nargs += 1;495 507 } else { 496 508 cerr << argv[0] << " error, compiler \"" << compiler_name << "\" unsupported." << endl; 497 509 exit( EXIT_FAILURE ); 498 510 } // if 499 500 for ( int i = 0; i < nlibs; i += 1 ) { // copy non-user libraries after all user libraries501 args[nargs] = libs[i];502 nargs += 1;503 } // for504 511 505 512 args[nargs] = NULL; // terminate with NULL
Note:
See TracChangeset
for help on using the changeset viewer.