<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">When the library is being created by
CMake itself I would have expected a SONAME by default:<br>
"Default is to set "soname" on all shared libraries and modules as
long as the platform supports it."<br>
<br>
Is armLinux a valid value for CMAKE_SYSTEM_NAME?<br>
Quick glimpse at some documentation suggests you may want "Linux"
instead since there are no armLinux platform files.<br>
<br>
I assume that may also set the proper flags for SONAME to work by
default(?)<br>
<br>
Nils<br>
<br>
On 07/19/2013 11:31 AM, Дмитрий Дороговцев wrote:<br>
</div>
<blockquote
cite="mid:CANowdizveJbpW28uvvU=VBDLP3fZ_Ms5T3i+=uaJ8qK3HjkN6w@mail.gmail.com"
type="cite"><br>
<br>
<div class="gmail_quote">2013/7/19 Nils Gladitz <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:nilsgladitz@gmail.com"
target="_blank">nilsgladitz@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Does /home/mgh/proj/test/lib/libfoo.so not have a
SONAME while your native libfoo.so does?<br>
<br>
The linker may use the SONAME when available and might
fall back to the path as seen on the command line
(/home/mgh/proj/test/lib/libfoo.so) otherwise?<br>
<br>
Nils<br>
</div>
</div>
</blockquote>
<div><br>
<br>
Yes, you are totally right! I have explicitly set soname to
library with<br>
set( CMAKE_SHARED_LINKER_FLAGS "-Wl,-soname,libfoo.so" )<br>
and after this final executable shows its dependencies as host
one.<br>
Thank you very much. I have one more question, though: should
I<br>
set soname every time explicitly or this should be done by
toolchain<br>
linker?<br>
</div>
</div>
<br>
</blockquote>
<br>
</body>
</html>