Mike Sullivan wrote:
> Mike Sullivan wrote:
>> Sheng-qi Jiang wrote:
>>>> I will update webrev later this week.
>>>>
>>> Please help the updated webrev.
>>>
>>> http://cr.opensolaris.org/~henryj/openexr/
>>>
>>>
>>>
>>> The binaries built out still have these nits but it does not impact 
>>> running.
>>>
>>>     [9]  RUNPATH           0xf82               
>>> /opt/SUNWspro/SS11/lib/rw7/:/opt/SUNWspro/SS11/lib/:/usr/ccs/lib/:/lib/:/usr/lib/
>>>  
>>>
>>>      [10]  RPATH             0xf82               
>>> /opt/SUNWspro/SS11/lib/rw7/:/opt/SUNWspro/SS11/lib/:/usr/ccs/lib/:/lib/:/usr/lib/
>>>  
>>
>>
>>
>> C++ eh? that needs to be fixed - you need to get -norunpath to the
>> compiler that is being used. You might want to grep for it in other
>> Makefile.sfws to see what other things do, as not all look at the same
>> variables (well, or look at how you can get configure or whatever erlang
>> uses to pick it up).
>
Hi Mike,
Actually I have checked the code in sfwnv gate, there are a couple to 
fix RPATH, but I  found the libraries code under "usr/src/lib"  are all 
not real C++ except this one: libprecpp.so, which also got this path as 
below,

/ws/sfwnv-gate/proto/root_i386/usr/lib> elfdump -d libpcrecpp.so.0.0.0 | 
grep PATH
       [7]  RUNPATH           0x1f51              
/usr/lib:/ws/onnv-tools/SUNWspro/SS11/lib/rw7:/ws/onnv-tools/SUNWspro/SS11/lib:/opt/SUNWspro/lib:/usr/ccs/lib:/lib:/usr/lib
       [8]  RPATH             0x1f51              
/usr/lib:/ws/onnv-tools/SUNWspro/SS11/lib/rw7:/ws/onnv-tools/SUNWspro/SS11/lib:/opt/SUNWspro/lib:/usr/ccs/lib:/lib:/usr/lib




And I have tried the method with -norunpath or set LD_FLAGS, but just 
not work when linking with "CC".
A simple manual test:

#  /opt/SUNWspro/SS11/bin/CC -G -zdefs -nolib -o 
.libs/libHalf.so.6.0.0   .libs/half.o  -lCstd -lCrun -lc -lm -lpthread
# elfdump -d .libs/libHalf.so.6.0.0 | grep PATH
       [7]  RUNPATH           0x4d2               
/opt/SUNWspro/SS11/lib/rw7:/opt/SUNWspro/SS11/lib:/opt/SUNWspro/lib:/usr/ccs/lib:/lib:/usr/lib
       [8]  RPATH             0x4d2               
/opt/SUNWspro/SS11/lib/rw7:/opt/SUNWspro/SS11/lib:/opt/SUNWspro/lib:/usr/ccs/lib:/lib:/usr/lib

That's why I choose patch it to link with "cc" in the previous version 
(But I also don't love the patch method).

Thanks!

> openexr, sorry :) looking at the wrong subject in another window :)
>
>     Mike
>


-- 
Henry Jiang ( Jiang Shengqi )
Tel: +86-10-6267 3941 
SWAN: 82941



Reply via email to