--- gcc/config/x-rs6000 2018/04/24 17:51:33 1.1.1.1 +++ gcc/config/x-rs6000 2018/04/24 17:54:04 1.1.1.2 @@ -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