When I try to build talloc on a QNX 6.4.1 system, it fails as follows:
gcc -shared -o libtalloc.so.1.4.0 ./talloc.o replace.o snprintf.o getpass.o strptime.o timegm.o libtalloc.so.1
gcc: libtalloc.so.1: No such file or directory
The problem is that SONAMEFLAG is empty, so gcc misinterprets "libtalloc.so.1" as a file name instead of as the SO name.
The linker on QNX accepts both -h and -soname flags to specify the SO name, so this problem can be fixed by setting SONAMEFLAG to "-Wl,-h,", "-Wl,-soname,", or "-Wl,-soname=".
Created attachment 4528 [details]
Set SONAMEFLAG to "-Wl,-soname=" on QNX