Use $REALCC not $CC when constructing LDSHARED, otherwise we get 2×smartlink. Rev: src/configure.in:1.663