[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unable to use $ORIGIN in rpath
From: |
m c |
Subject: |
Re: unable to use $ORIGIN in rpath |
Date: |
Wed, 15 Aug 2007 11:16:27 +0530 |
tried but it didnt work
MAKETARGET='g++ -o ././libSampleSoD.so -shared -Wl,-Bsymbolic -Wl,-rpath,$ORIGIN:$ORIGIN/../lib:.:../lib ./obj/debug/sample.o -ldl -lpthread -lgcc'
g++ -o ././libSampleSoD.so -shared -Wl,-Bsymbolic -Wl,-rpath,RIGIN:RIGIN/../lib:.:../lib ./obj/debug/sample.o -ldl -lpthread -lgcc
mrc
On 8/15/07, Paul Smith <address@hidden> wrote:
On Wed, 2007-08-15 at 10:39 +0530, m c wrote:
> changed MAKETARGET="${MAKETARGET}" to MAKETARGET='${MAKETARGET}'. but
> still it didnt work.
>
> MAKETARGET='g++ -o ././libSampleSoD.so -shared -Wl,-Bsymbolic
> -Wl,-rpath,'$ORIGIN:$ORIGIN/../lib:.:../lib' ./obj/debug/sample.o
> -ldl -lpthread -lgcc'
>
> g++ -o ././libSampleSoD.so -shared -Wl,-Bsymbolic
> -Wl,-rpath,:/../lib:.:../lib ./obj/debug/sample.o -ldl -lpthread
> -lgcc
>
> i want shell not to expand $ORIGIN. like:
>
> g++ -o ././libSampleSoD.so -shared -Wl,-Bsymbolic -Wl,-rpath,
> '$ORIGIN:$ORIGIN/../lib:.:../lib' ./obj/debug/sample.o -ldl
> -lpthread -lgcc
That's because I forgot something. Your value of MAKETARGET looks like
this:
dynamicdebug : MAKETARGET = ${OSCPP} ... $(RPATHFLAG_PREFIX)'$(RPATHFLAG)$(RPATHFLAG_EXTRAS)' ...
Note you have added single quotes into the value, around
$(RPATHFLAG)$(RPATHFLAG_EXTRAS)
So, when make expands the value of the script:
MAKETARGET='${MAKETARGET}' ... $(MAKE) -f Make.mk
you get this:
MAKETARGET=' '$ORIGIN:$ORIGIN/../lib:' ' make -f
Make.mk
basically the single quotes start and stop immediately, rather than
actually quoting anything.
I don't know why you have those single quotes in the value of
MAKETARGET, but one way to fix the problem is remove them.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
- unable to use $ORIGIN in rpath, m c, 2007/08/14
- RE: unable to use $ORIGIN in rpath, Dave Korn, 2007/08/14
- RE: unable to use $ORIGIN in rpath, Dave Korn, 2007/08/14
- Re: unable to use $ORIGIN in rpath, m c, 2007/08/15
- Re: unable to use $ORIGIN in rpath, Paul Smith, 2007/08/15
- Re: unable to use $ORIGIN in rpath, m c, 2007/08/15
- Re: unable to use $ORIGIN in rpath, Paul Smith, 2007/08/15
- Re: unable to use $ORIGIN in rpath,
m c <=
- Re: unable to use $ORIGIN in rpath, Paul Smith, 2007/08/15
- RE: unable to use $ORIGIN in rpath, Dave Korn, 2007/08/15
- RE: unable to use $ORIGIN in rpath, Paul Smith, 2007/08/15
- RE: unable to use $ORIGIN in rpath, Dave Korn, 2007/08/15
- RE: unable to use $ORIGIN in rpath, Dave Korn, 2007/08/16
- RE: unable to use $ORIGIN in rpath, Dave Korn, 2007/08/15
- RE: unable to use $ORIGIN in rpath, Paul Smith, 2007/08/15
- Re: unable to use $ORIGIN in rpath, m c, 2007/08/17