aboutsummaryrefslogtreecommitdiff
path: root/lang/icc/files/ld.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/icc/files/ld.c')
-rw-r--r--lang/icc/files/ld.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lang/icc/files/ld.c b/lang/icc/files/ld.c
index 797fe7497610..3823e5bb8689 100644
--- a/lang/icc/files/ld.c
+++ b/lang/icc/files/ld.c
@@ -216,12 +216,13 @@ main(int argc, char *argv[], char *envp[])
/*
* Don't add "-m elf_i386" ICC passed to us. Don't add
- * libgcc_eh, libgcc_s or libgcc_s_32.
+ * libgcc_eh, libgcc_s or libgcc_s_32, libdl.
*/
if ((ARGCMP(i, "-m") && i < argc - 1 && ARGCMP(i + 1,
"elf_i386")) || (ARGCMP(i, "elf_i386") && i != 0 &&
ARGCMP(i - 1, "-m")) || ARGCMP(i, "-lgcc_eh") ||
- ARGCMP(i, "-lgcc_s") || ARGCMP(i, "-lgcc_s_32"))
+ ARGCMP(i, "-lgcc_s") || ARGCMP(i, "-lgcc_s_32") ||
+ ARGCMP(i, "-ldl"))
continue;
/*