summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/config/rs6000/x-rs60005
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/rs6000/x-rs6000 b/gcc/config/rs6000/x-rs6000
index b47e77c480d..bcbdeee6c7e 100644
--- a/gcc/config/rs6000/x-rs6000
+++ b/gcc/config/rs6000/x-rs6000
@@ -9,4 +9,7 @@ ALLOCA_FLAGS=-c
ALLOCA_FINISH=
# For some reason, we need -lm for cc1.
-CLIB=-lm
+# We need -lld for collect2 (actually this only matters
+# for a native compiler, but this is as good a place as any
+# to define the symbol).
+CLIB=-lm -lld