diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2001-01-17 16:19:28 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2001-01-17 16:19:28 +0000 |
commit | a7988227899ee7720b530c8bb31a6ae486905f8f (patch) | |
tree | 22d777ef90cba4970bed66bda4ae3b2a958d8ee4 /extra/gcc-uClibc/gcc-uClibc.c | |
parent | 0c827cb73977b1ae72fb48075d412914583f23e0 (diff) |
Set dynamic linker used to /lib/ld-linux.so.1. Changeable in Makefile.
Diffstat (limited to 'extra/gcc-uClibc/gcc-uClibc.c')
-rw-r--r-- | extra/gcc-uClibc/gcc-uClibc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/extra/gcc-uClibc/gcc-uClibc.c b/extra/gcc-uClibc/gcc-uClibc.c index 55004f935..c29f351c4 100644 --- a/extra/gcc-uClibc/gcc-uClibc.c +++ b/extra/gcc-uClibc/gcc-uClibc.c @@ -123,7 +123,7 @@ int main(int argc, char **argv) } } if (use_stdlib) { - gcc_argv[i++] = "-nostdlib"; + gcc_argv[i++] = nostdlib; if (use_static_linking) { if (debugging) { gcc_argv[i++] = UCLIBC_LIB_G; @@ -131,6 +131,10 @@ int main(int argc, char **argv) gcc_argv[i++] = UCLIBC_LIB; } } else { + if (DYNAMIC_LINKER[0]) { /* not empty string */ + gcc_argv[i++] = "-Wl,--dynamic-linker"; + gcc_argv[i++] = DYNAMIC_LINKER; + } if (debugging) { gcc_argv[i++] = UCLIBC_SHAREDLIB_G; } else { |