summaryrefslogtreecommitdiff
path: root/linkers/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
commit9b66527bebda528a8f65ae1376c2085fc409fe21 (patch)
tree1305c8191ce8b22587434fb19c5b60cd73b27052 /linkers/rtems-ld.cpp
parent596e5fa59110601c6b72b24d6308187939a1ad21 (diff)
Only look for standard library paths if standard libraries and enabled.
Diffstat (limited to 'linkers/rtems-ld.cpp')
-rw-r--r--linkers/rtems-ld.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/linkers/rtems-ld.cpp b/linkers/rtems-ld.cpp
index f04b8b0..54e9987 100644
--- a/linkers/rtems-ld.cpp
+++ b/linkers/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.