Adding --libdir=/usr/lib64 has no effect in Makefile. The same with bindir and includedir.
Fix in attachment.
fix
fix