I am trying to port an application from NT to HP-UX10. Now I am using aCC
as the compiler and linker (path - /opt/aCC/bin/aCC). This program has 2 parts. An executable and shared library which is loaded at run-time. The shared library is also needed to satisfy some symbols during linking. In the run-time, the shared library is put in a directory which is included in the SHLIB_PATH. My problem is that, during linking, the linker is adding the absoulte path of the shared library to the executable. So when I run the executable elsewhere, it can't find the shared library cuz that path
of course is unique to the development set-up. So the program fails and core dumps.
What i need is some linker options to tell the linker not to add the abs path of the
SL to the executable. Guys, i am new to the forum and I will be very happy if i fix this in a day or two. thanks- Anand Pillai [sig][/sig]
as the compiler and linker (path - /opt/aCC/bin/aCC). This program has 2 parts. An executable and shared library which is loaded at run-time. The shared library is also needed to satisfy some symbols during linking. In the run-time, the shared library is put in a directory which is included in the SHLIB_PATH. My problem is that, during linking, the linker is adding the absoulte path of the shared library to the executable. So when I run the executable elsewhere, it can't find the shared library cuz that path
of course is unique to the development set-up. So the program fails and core dumps.
What i need is some linker options to tell the linker not to add the abs path of the
SL to the executable. Guys, i am new to the forum and I will be very happy if i fix this in a day or two. thanks- Anand Pillai [sig][/sig]