summaryrefslogtreecommitdiff
path: root/linkers/rtems-tld.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
commit40fd7a088afe6df7f65058619f660640506ee581 (patch)
tree54bc7700cc24613da16154f94e4260b96f7b12e7 /linkers/rtems-tld.cpp
parente5165d2d0a02443f82198ec00459bfbc4c150709 (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 'linkers/rtems-tld.cpp')
-rw-r--r--linkers/rtems-tld.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/linkers/rtems-tld.cpp b/linkers/rtems-tld.cpp
index d206da7..2ab292a 100644
--- a/linkers/rtems-tld.cpp
+++ b/linkers/rtems-tld.cpp
@@ -755,8 +755,7 @@ usage (int exit_code)
<< " -w : generate warnings (also --warn)" << std::endl
<< " -k : keep temporary files (also --keep)" << 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
<< " -C ini : user configuration INI file (also --config)" << std::endl;
::exit (exit_code);
}
@@ -815,7 +814,7 @@ main (int argc, char* argv[])
while (true)
{
- int opt = ::getopt_long (argc, argv, "hvwkVE:a:c:C:", rld_opts, NULL);
+ int opt = ::getopt_long (argc, argv, "hvwkVE:c:C:", rld_opts, NULL);
if (opt < 0)
break;
@@ -846,12 +845,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 'C':