diff options
author | Chris Johns <chrisj@rtems.org> | 2014-09-01 13:26:47 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-09-01 13:26:47 +1000 |
commit | 40fd7a088afe6df7f65058619f660640506ee581 (patch) | |
tree | 54bc7700cc24613da16154f94e4260b96f7b12e7 /linkers/rtems-syms.cpp | |
parent | Fix getopt_long usage (diff) | |
download | rtems-tools-40fd7a088afe6df7f65058619f660640506ee581.tar.bz2 |
rld: Split the file into a path module for path specific functions.
This allows resued for other parts of the system not dependent on
objcet files or archives.
Diffstat (limited to 'linkers/rtems-syms.cpp')
-rw-r--r-- | linkers/rtems-syms.cpp | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/linkers/rtems-syms.cpp b/linkers/rtems-syms.cpp index 437884c..24c7826 100644 --- a/linkers/rtems-syms.cpp +++ b/linkers/rtems-syms.cpp @@ -82,8 +82,7 @@ usage (int exit_code) << " -S : search standard libraries (also --stdlibs)" << std::endl << " -C file : execute file as the target C compiler (also --cc)" << std::endl << " -E prefix : the RTEMS tool prefix (also --exec-prefix)" << std::endl - << " -a march : machine architecture (also --march)" << std::endl - << " -c cpu : machine architecture's CPU (also --mcpu)" << std::endl; + << " -c cflags : C compiler flags (also --cflags)" << std::endl; ::exit (exit_code); } @@ -131,10 +130,10 @@ main (int argc, char* argv[]) try { rld::files::cache cache; - rld::files::paths libpaths; - rld::files::paths libs; - rld::files::paths objects; - rld::files::paths libraries; + rld::path::paths libpaths; + rld::path::paths libs; + rld::path::paths objects; + rld::path::paths libraries; rld::symbols::table symbols; std::string base_name; std::string cc_name; @@ -148,7 +147,7 @@ main (int argc, char* argv[]) while (true) { - int opt = ::getopt_long (argc, argv, "hvwVSE:L:l:a:c:C:", rld_opts, NULL); + int opt = ::getopt_long (argc, argv, "hvwVSE:L:l:c:C:", rld_opts, NULL); if (opt < 0) break; @@ -199,12 +198,8 @@ main (int argc, char* argv[]) rld::cc::exec_prefix = optarg; break; - case 'a': - rld::cc::march = optarg; - break; - case 'c': - rld::cc::mcpu = optarg; + rld::cc::cflags = optarg; break; case '?': |