summaryrefslogtreecommitdiff
path: root/rtems-syms.cpp
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2014-09-01 13:26:47 +1000
committerChris Johns <chrisj@rtems.org>2014-09-01 13:26:47 +1000
commit8c841a582f45d8a6cc1b3c439d4f660099e34d1b (patch)
tree6d5099a2bc67b72cbb43c0b3c3af0e8db39ce2cf /rtems-syms.cpp
parent02ccf12ec62e7894786b6fff059f92fdcd7acaa1 (diff)
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 'rtems-syms.cpp')
-rw-r--r--rtems-syms.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/rtems-syms.cpp b/rtems-syms.cpp
index 437884c..24c7826 100644
--- a/rtems-syms.cpp
+++ b/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 '?':