<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3603" name=GENERATOR>
<STYLE>@font-face {
        font-family: SimSun;
}
@font-face {
        font-family: SimSun;
}
@font-face {
        font-family: @SimSun;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
LI.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
DIV.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.EmailStyle17 {
        COLOR: blue; FONT-FAMILY: "Courier New"; mso-style-type: personal-compose
}
.MsoChpDefault {
        mso-style-type: export-only
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-GB vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN lang=EN-US
style="COLOR: blue; FONT-FAMILY: 'Courier New'">Hi all,<o:p></o:p></SPAN></DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN lang=EN-US
style="COLOR: blue; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US
style="COLOR: blue; FONT-FAMILY: 'Courier New'">I used cmake to generate the
Makefile to build a shared library.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US
style="COLOR: blue; FONT-FAMILY: 'Courier New'">And after that, I used ldd to
check the dependency.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US
style="COLOR: blue; FONT-FAMILY: 'Courier New'">It looks that the shared library
depends on other shared library which is showed as absolute
path.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US
style="COLOR: blue; FONT-FAMILY: 'Courier New'">For
example,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US
style="COLOR: blue; FONT-FAMILY: 'Courier New'">I have ‘ldd
libMy.so’:<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US
style="COLOR: blue; FONT-FAMILY: 'Courier New'">lib3rdParty.so =>
</SPAN><SPAN lang=EN-US
style="COLOR: red; FONT-FAMILY: 'Courier New'">/absolute/path/lib3rdParty.so
(0x0056c000)</SPAN><SPAN lang=EN-US
style="COLOR: blue; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US
style="COLOR: blue; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US
style="COLOR: blue; FONT-FAMILY: 'Courier New'">Is it possible to remove the
info in </SPAN><SPAN lang=EN-US
style="COLOR: red; FONT-FAMILY: 'Courier New'">red </SPAN><SPAN lang=EN-US
style="COLOR: blue; FONT-FAMILY: 'Courier New'">by setting some flags in gcc
option?<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US
style="COLOR: blue; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US
style="COLOR: blue; FONT-FAMILY: 'Courier New'">I tried to compile my lib just
manually writing the Makefile by using –shared –Wl,soname. The red part did not
show up.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US
style="COLOR: blue; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US
style="COLOR: blue; FONT-FAMILY: 'Courier New'">Regards,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US
style="COLOR: blue; FONT-FAMILY: 'Courier New'">Milo<o:p></o:p></SPAN></P></DIV><DIV><FONT face=Arial size=2><SPAN class=272370717-27032000>PLEASE READ: The information contained in this e-mail is confidential. If you are not an intended recipient of this e-mail you must not copy, distribute or take any further action in reliance upon it and you should delete it and notify the sender. E-mail is not a secure method of communication. Nomura Securities Co. Ltd Shanghai Representative Office cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). This transmission could contain viruses, be corrupted, destroyed, incomplete, intercepted, lost or arrive late. If verification of this e-mail is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura Securities Co. Ltd Shanghai Representative Office. This e-mail is intended for information purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments.</SPAN></FONT></DIV>
</BODY></HTML>