Originally posted by: SystemAdmin
I use the following command to build a binary in my Makefile:
xlc_r -I. usea.c -o usea -L/lhome/faiz/tests/libaix -lfunca -blibpath:'$$ORIGIN'/../libaix
dump -h ./usea gives:
***Import File Strings***
INDEX PATH BASE MEMBER
0 $ORIGIN/../libaix
1 libc.a shr.o
2 libpthreads.a shr_comm.o
3 libpthreads.a shr_xpg5.o
4 libfunca.a shr.o
Does $ORIGIN work on AIX as it does on linux, solaris and HP? Or is the above command wrong? When I run the binary built using the above command it gives me error although I have a file libfunca.a in ../libaix
exec(): 0509-036 Cannot load program ./usea because of the following errors:
0509-150 Dependent module libfunca.a(shr.o) could not be loaded.
0509-022 Cannot load module libfunca.a(shr.o).
0509-026 System error: A file or directory in the path name does not exist.
Appreciate any quick response. Thanks in advance.