libtool can't find the la when linking with option -L
问题 I met the problem when compiling the source code of mpc which will depend on gmp. The command to compile mpc is as below. ./configure --with-mpfr=/home/wy/tmp/mpfr-4.0.2/ins --with-gmp=/home/wy/tmp/gmp-6.2.0/ins --prefix=/home/wy/tmp/mpc-1.1.0/ins The gmp has been installed into /home/user/tmp/gmp-6.2.0/ins successfully. The error when compiling mpc with libtool is as below. /bin/bash ../libtool --tag=CC --mode=link gcc -std=gnu99 -O2 -pedantic -fomit-frame-pointer -m64 -mtune=corei7 -march