summaryrefslogtreecommitdiff
path: root/rtems-ld.cpp
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-11-19 13:13:52 +1100
committerChris Johns <chrisj@rtems.org>2012-11-19 13:13:52 +1100
commitd0a1bded76293012fbdb9af05bc9b333cf09398b (patch)
treeb33892b14fd7f070d6b34ec8642246bfbfd27d79 /rtems-ld.cpp
parente2ceaecb55d053b3f0550c9b4b6bc9555201ef15 (diff)
Only look for standard library paths if standard libraries and enabled.
Diffstat (limited to 'rtems-ld.cpp')
-rw-r--r--rtems-ld.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/rtems-ld.cpp b/rtems-ld.cpp
index f04b8b0..54e9987 100644
--- a/rtems-ld.cpp
+++ b/rtems-ld.cpp
@@ -339,7 +339,8 @@ main (int argc, char* argv[])
/*
* Get the standard library paths
*/
- rld::cc::get_standard_libpaths (libpaths);
+ if (standard_libs)
+ rld::cc::get_standard_libpaths (libpaths);
/*
* Get the command line libraries.