Linking Application to Custom Library Location Fails

I've successfully overwritten the default directory location with --prefix=/opt. However, the application still seems to be linking to the default library in /lib when it should be linking to the custom library location of /opt/lib.

The following are the FLAGS and configure arguments as shown during compilation:

CPPFLAGS="-I/media/user/SanDiskSDXC/OpenWRT/staging_dir/toolchain-arm_cortex-a9_gcc-8.4.0_glibc-2.23_eabi/include " LDFLAGS="-Wl,--dynamic-linker=/opt/lib/ld-linux.so.3 -Wl,-rpath=/opt/lib -L/media/user/SanDiskSDXC/OpenWRT/staging_dir/toolchain-arm_cortex-a9_gcc-8.4.0_glibc-2.23_eabi/lib" ./configure --target=arm-openwrt-linux --host=arm-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/opt --exec-prefix=/opt --bindir=/opt/bin --sbindir=/opt/sbin --libexecdir=/opt/lib --sysconfdir=/opt/etc --datadir=/opt/share --localstatedir=/opt/var --mandir=/opt/man --infodir=/opt/info

I've tried to use the LDFLAGS and EXTRA_LDFLAGS modifiers to no avail.

Your assistance is greatly appreciated.