Linker linux-gnu-ld cannot find libraries

Hey,
I am compiling a custom package and in the end there is linkage part, but when i reach there i get the error below, i am running with x86, generic

i486-openwrt-linux-gnu-ld <LOT OF .o files>  -o httpclient -lpthread -lcrypto -lssl -luuid -lsqlite3
i486-openwrt-linux-gnu-ld: cannot find -lcrypto
i486-openwrt-linux-gnu-ld: cannot find -lssl
i486-openwrt-linux-gnu-ld: cannot find -luuid
i486-openwrt-linux-gnu-ld: cannot find -lsqlite3
Makefile:431: recipe for target 'httpclient ' failed

in the package makefile i have the following

DEPENDS:=+libsqlite3 +libopenssl +libpthread +libuuid +libxml2 +libstrophe +libc

and in the compilation log there is the following

checking for main in -lcrypto... yes
checking for main in -lpthread... yes
checking for main in -lsqlite3... yes
checking for main in -lssl... yes
checking for main in -lxml2... yes
checking for main in -luuid... yes
checking how to run the C preprocessor... i486-openwrt-linux-gnu-gcc -E

Can anyone advice what wrong is going here?

What platform are you running on?

Are you trying to build on the router itself (hint -- nearly impossible)?

"i486" harkens back to when my hair wasn't quite so gray.

Hey,
I am building on Ubuntu 16.10 linux machine It's as the following:

Target System (x86) --->
Subtarget (Generic) --->
Target Profile (Generic) --->

Git branch:
openwrt-18.06

in the "build_dir" folder i have the following name "target-i386_pentium4_glibc" and "toolchain-i386_pentium4_gcc-7.3.0_glibc"
i tried also "target-i386_pentium4_musl" and "toolchain-i386_pentium4_gcc-7.3.0_musl" but t he same issue

if i build the original source code on the host it self there is no issues, but on the tool-chain it fails on the linking, on the current stage i am running it on VirtualBox not on real hardware because of this the Subtarget is not the most important part for me currently since after finish testing i will compile it for Rpi3 b+, but also there i had the same issues

Updates:
in addition to the previous reply, i tried with x86/64 and got the same issue

.... auth.o  -lpthread -lcrypto -lssl -luuid -lsqlite3 	 -o httpclient 
x86_64-openwrt-linux-gnu-ld: cannot find -lcrypto
x86_64-openwrt-linux-gnu-ld: cannot find -lssl
x86_64-openwrt-linux-gnu-ld: cannot find -luuid
x86_64-openwrt-linux-gnu-ld: cannot find -lsqlite3
Makefile:431: recipe for target 'httpclient ' failed
make[3]: *** [httpclient ] Error 1
make[3]: Leaving directory 
openwrt/build_dir/target-x86_64_glibc/httpclient -0.1'

Any suggestions ?