Changeset 2026bb6 for driver


Ignore:
Timestamp:
Jul 19, 2019, 10:31:53 AM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
8ac3b0e
Parents:
6f15121
Message:

More robust fix for optionally linking threads

File:
1 edited

Legend:

Unmodified
Added
Removed
  • driver/cfa.cc

    r6f15121 r2026bb6  
    405405                args[nargs] = "--undefined=__cfaabi_appready_startup";
    406406                nargs += 1;
    407                 args[nargs] = "-Xlinker";
    408                 nargs += 1;
    409                 args[nargs] = "--undefined=__cfaabi_dbg_record";
    410                 nargs += 1;
    411407
    412408                // include the cfa library in case it's needed
     
    414410                nargs += 1;
    415411                args[nargs] = ( *new string( string("-Wl,-rpath," ) + libdir + (intree ? "/src/.libs" : "")) ).c_str();
     412                nargs += 1;
     413                args[nargs] = "-Wl,--push-state,--as-needed";
     414                nargs += 1;
     415                args[nargs] = "-lcfathread";
     416                nargs += 1;
     417                args[nargs] = "-Wl,--pop-state";
    416418                nargs += 1;
    417419                args[nargs] = "-lcfa";
Note: See TracChangeset for help on using the changeset viewer.