View topic - gcc and -R option

gcc and -R option

Discussion about the general applications that run on QNX6

gcc and -R option

Postby maschoen » Sun Jun 29, 2008 7:57 am

Can someone explain to me why the QNX distributed gcc does not support the -R option?

As best I can tell, -R is the usual way of marking a module so that the linker knows where to find shared objects at load time.

Obviously QNX supports the use of shared objects, but unfortunately, the -R option seems to be assumed in a lot of open source, such that it being missing causes a lot of problems.

Eg, a configure script wants to know if foo.so exists, so it compiles a program that needs foo.so. Unfortunately it points the linker at foo.so using -R/libdir, which causes gcc to fail, causing the configure script to think foo.so is not there.
maschoen
QNX Master
 
Posts: 2720
Joined: Wed Jun 25, 2003 5:18 pm

Return to QNX6 - Applications

Who is online

Users browsing this forum: No registered users and 2 guests