The -lc was introduced by
d6231142d2b883a8c3b253fa34992b5cdb4ac2fe :
which said in part
"Changes in 1.2.3.2 (3 September 2006)
...
- Rig configure --shared to build both shared and static [Teredesai, Truta]"
It's not clear why it was needed. On powerpc, linking -lc explicitly
causes __moddi3 and __stack_chk_fail_local to swap location in the
binary.
If we want configure and cmake to generate identical shared libraries,
either we need to link -lc explicitly in both configure and cmake,
or in neither. Occam's Razor suggests omitting it from configure
rather than adding it to cmake.
STRIP=
RANLIB=ranlib
LDCONFIG=ldconfig
-LDSHAREDLIBC=-lc
+LDSHAREDLIBC=
EXE=
SRCDIR=.
# set defaults before processing command line options
LDCONFIG=${LDCONFIG-"ldconfig"}
LDFLAGS=${LDFLAGS}
-LDSHAREDLIBC="${LDSHAREDLIBC--lc}"
+LDSHAREDLIBC="${LDSHAREDLIBC}"
DEFFILE=
RC=
RCFLAGS=