Building with geo-ip when GeoIP lib in non-standard location

Igor Sysoev igor at sysoev.ru
Mon Oct 11 23:00:48 MSD 2010


On Mon, Oct 11, 2010 at 02:43:44PM -0400, djeyewater wrote:

> Igor Sysoev Wrote:
> -------------------------------------------------------
> > 
> > Then try:
> > 
> > --with-ld-opt="-rpath $HOME/apps/GeoIP/lib -L
> > $HOME/apps/GeoIP/lib"
> > 
> 
> Unfortunately that's the same (from autoconf.err):
> [code]checking for --with-ld-opt="-rpath /home/djeyewater/apps/GeoIP/lib
> -L /home/djeyewater/apps/GeoIP/lib"
> 
> gcc: unrecognized option '-rpath'
> /home/djeyewater/apps/GeoIP/lib: file not recognized: Is a directory
> collect2: ld returned 1 exit status[/code]

Oh, sorry, I have just noticed that this is an gcc's error, but not
linker's one. Try

--with-ld-opt="-Wl,-R,$HOME/apps/GeoIP/lib -L $HOME/apps/GeoIP/lib"

or

--with-ld-opt="-Wl,-rpath,$HOME/apps/GeoIP/lib -L $HOME/apps/GeoIP/lib"


-- 
Igor Sysoev
http://sysoev.ru/en/



More information about the nginx mailing list