--- ncurses-5.9/src/configure.orig 2013-08-21 02:51:59.000000000 +0000 +++ ncurses-5.9/src/configure 2013-08-21 02:53:23.000000000 +0000 @@ -5719,7 +5719,7 @@ cf_cv_shared_soname='`basename $@`' fi - MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@' + MK_SHARED_LIB='${CC} -shared -Bshareable -soname=`basename $@` -o $@' ;; netbsd*) #(vi CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"