Mercurial > projects > ldc
comparison gen/toobj.cpp @ 677:075c1272a01d
Link using gcc instead.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 11 Oct 2008 21:21:21 +0200 |
parents | 1f0a78174598 |
children | b411c41a9716 |
comparison
equal
deleted
inserted
replaced
676:1f0a78174598 | 677:075c1272a01d |
---|---|
418 args.push_back("-xassembler"); | 418 args.push_back("-xassembler"); |
419 args.push_back(asmpath.toString()); | 419 args.push_back(asmpath.toString()); |
420 args.push_back("-o"); | 420 args.push_back("-o"); |
421 args.push_back(objpath.toString()); | 421 args.push_back(objpath.toString()); |
422 | 422 |
423 //TODO: Add other options, like -fpic | 423 //FIXME: only use this if needed? |
424 args.push_back("-fpic"); | |
424 | 425 |
425 // Now that "args" owns all the std::strings for the arguments, call the c_str | 426 // Now that "args" owns all the std::strings for the arguments, call the c_str |
426 // method to get the underlying string array. We do this game so that the | 427 // method to get the underlying string array. We do this game so that the |
427 // std::string array is guaranteed to outlive the const char* array. | 428 // std::string array is guaranteed to outlive the const char* array. |
428 std::vector<const char *> Args; | 429 std::vector<const char *> Args; |