<div dir="ltr">I am having a problem with fpc picking up linking directories on my Raspberry Pi.<div><br></div><div>I have a this lib:</div><div><br></div><div>/opt/vc/lib/libGLESv2.so</div><div><br></div><div>When I execute "ldconfig -v" it shows both "/opt/vc/lib/" as a ld link directory, and the file libGLESv2.so as a linkable library.</div><div><br></div><div>But when I use this code in a unit:</div><div><br></div><div>procedure glActiveTexture(texture: GLenum); external 'libGLESv2.so';<br></div><div><br></div><div>I get this linker error during compile:</div><div><br></div><div>/usr/lib/ld: cannot lind -lGLESv2</div><div><br></div><div>But when I compile adding -Fl/opt/vc/lib the compile works without error, What's the deal? Why am I getting the ld error when when "/opt/vc/lib" is clearly in my linking path?</div><div><br></div></div>