Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AIX 5.3 (ld-xlc) equivalent option Linux (ld-gcc) -rpath

Tags:

My compiler:xlc version 10.1 Environment: AIX5.3 Linker: ld

When i work on Linux , with gcc (4.4.1) i use the following option

-Wl,-rpath

(-Wl for the linker options) it adds a directory to the runtime library search path.

What's the equivalent for xlc compiler ?

or what's the equivalent to -rpath for the linker.

Thank you.

like image 610
Nadir SOUALEM Avatar asked Oct 08 '09 16:10

Nadir SOUALEM


1 Answers

My first answer was: The AIX linker option for that one is -blibpath. (If it's any help, for the Sun compiler, it's -R. Just in case!)

I now have edited it to respond to the OP's comment: Right you are. Actually, reading the AIX linker manual (man ld) it looks like -L is the right option already!

   -LDirectory
        Adds Directory to the list of search directories used for finding
        libraries designated by the -l (lowercase letter L) flag. The list
        of directories, including the standard library directories, is
        also recorded in the output object file loader section for use by
        the system loader unless you use the -blibpath, -bnolibpath, or
        -bsvr4 option. You can repeat this flag.
like image 69
F'x Avatar answered Oct 11 '22 17:10

F'x