Forcing ld to bind to unversioned .so file
===

Can I force `ld` to link against an unversioned .so file?

Under linux, when I link a C++ program to a shared library, it will be bound to the versioned .so file, which is normally a very good idea. For example, if I compile my program with

    g++ main.cxx -l somelib

and then check

    ldd ./a.out

it will print something like

    libsomelib.so.1 => /xxxx/somelib/libsomelib.so.1

Because of a system broken elsewhere, this file is installed in a target as `libsomelib.so` instead of, as normal, as `libsomelib.so.1` with symlink. It is not possible for me to change this, so as a workaround I would like to change my makefile to link against the unversioned .so file. (Binary compatibility is not a problem here, since everything is in a controlled environment).