help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

unable to use $ORIGIN in rpath


From: m c
Subject: unable to use $ORIGIN in rpath
Date: Tue, 14 Aug 2007 23:28:51 +0530

Hi,
 
i am trying to set rpath to value '$ORIGIN:$ORIGIN/../lib:.:../lib' in a makefile. but $ORIGIN is always getting replaced.
 
g++  -D__unix -D_REENTRANT -D_PTHREADS -DSTRING_CONVERSION -D_GNU_SOURCE -DSTL_STRING_LENGTH_ORIG -DSGI_STL -D__STL -DSYNC_IS_PUBLIC -DNATIVE_64BIT   -DNDEBUG -w -fPIC -pipe   -o obj/release/sample.o -c sample.cpp
g++   -o ././libSampleSo.so -shared     -Wl,-Bsymbolic  -Wl,-rpath,':/../lib:.:../lib'  ./obj/release/sample.o    -ldl -lpthread -lgcc
 
i tried all the tricks mentioned in http://www.itee.uq.edu.au/~daniel/using_origin/ but nothing worked.
 
i have attached a zip file which contains the source and the make files.
 
please help.
 
Thanks,
mrc
 

Attachment: origin.tar.gz
Description: GNU Zip compressed data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]