summaryrefslogtreecommitdiffstats
path: root/extra/gcc-uClibc
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2001-04-07 16:44:38 +0000
committerManuel Novoa III <mjn3@codepoet.org>2001-04-07 16:44:38 +0000
commit7b6a9548ee32cb45913384fd321f53f46fcd1d3d (patch)
treeaf8b4906b4e8e2b97195210692531ceda6906ef6 /extra/gcc-uClibc
parentbb4178a5118346e6da9eff37eea7018583eb9cac (diff)
downloaduClibc-alpine-7b6a9548ee32cb45913384fd321f53f46fcd1d3d.tar.bz2
uClibc-alpine-7b6a9548ee32cb45913384fd321f53f46fcd1d3d.tar.xz
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.
Diffstat (limited to 'extra/gcc-uClibc')
-rw-r--r--extra/gcc-uClibc/gcc-uClibc.c6
1 files changed, 1 insertions, 5 deletions
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;