From 7b6a9548ee32cb45913384fd321f53f46fcd1d3d Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Sat, 7 Apr 2001 16:44:38 +0000 Subject: Fix dynamic linking bug. If you need -ldl, you must explicitly add the library (path and version!!!) to the args instead. For example, add /lib/libdl.so.1 if DYNAMIC_LINKER is /lib/ld-linux.so.1. --- extra/gcc-uClibc/gcc-uClibc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'extra') diff --git a/extra/gcc-uClibc/gcc-uClibc.c b/extra/gcc-uClibc/gcc-uClibc.c index 5abad4c8f..999064290 100644 --- a/extra/gcc-uClibc/gcc-uClibc.c +++ b/extra/gcc-uClibc/gcc-uClibc.c @@ -140,8 +140,7 @@ int main(int argc, char **argv) } } else { if (DYNAMIC_LINKER[0]) { /* not empty string */ - gcc_argv[i++] = "-Wl,--dynamic-linker"; - gcc_argv[i++] = DYNAMIC_LINKER; + gcc_argv[i++] = "-Wl,--dynamic-linker,"DYNAMIC_LINKER; } if (debugging) { gcc_argv[i++] = UCLIBC_SHAREDLIB_G; @@ -150,9 +149,6 @@ int main(int argc, char **argv) } } gcc_argv[i++] = GCC_LIB; - if (!use_static_linking && DYNAMIC_LINKER[0]) { - gcc_argv[i++] = DYNAMIC_LINKER; - } } } gcc_argv[i++] = NULL; -- cgit v1.2.3