<div dir="ltr"><div>It's been a month now, but I think the only change was that I added one-line to my CMakeLists.txt file (that's the only thing that appears important in the SVN changeset, so that might be it).<br>
<br>The line was:</div><div><b><span class="" style="white-space:pre"> </span>SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++")<br></b><br>In context that looks like this:</div><div><div># Steam SDK Directories</div>
<div>IF(WIN32)</div><div><span class="" style="white-space:pre"> </span>SET(STEAMINC "C:\\CODE\\Game Development\\Hive\\Steamworks-CS\\STEAM_SDK\\public")</div><div><span class="" style="white-space:pre"> </span>SET(STEAMLIB "C:\\CODE\\Game Development\\Hive\\Steamworks-CS\\STEAM_SDK\\redistributable_bin")</div>
<div>ELSE()</div><div><span class="" style="white-space:pre"> </span>IF(APPLE)</div><div><span class="" style="white-space:pre"> </span>SET(HOMEDIR "Users")</div><div><span class="" style="white-space:pre"> </span>SET(OSDIR "osx32")</div>
<div><span class="" style="white-space:pre"> </span>SET(STEAMINC "/${HOMEDIR}/media/Desktop/hive/Steamworks-CS/STEAM_SDK/public")</div><div><span class="" style="white-space:pre"> </span>SET(STEAMLIB "/${HOMEDIR}/media/Desktop/hive/Steamworks-CS/STEAM_SDK/redistributable_bin/${OSDIR}")</div>
<div><span class="" style="white-space:pre"> </span><b>SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++")</b></div><div><span class="" style="white-space:pre"> </span>ELSE()</div><div><span class="" style="white-space:pre"> </span>SET(HOMEDIR "home")</div>
<div><span class="" style="white-space:pre"> </span>SET(OSDIR "linux32")</div><div><span class="" style="white-space:pre"> </span>SET(STEAMINC "/${HOMEDIR}/sean/Desktop/hive/Steamworks-CS/STEAM_SDK/public")</div>
<div><span class="" style="white-space:pre"> </span>SET(STEAMLIB "/${HOMEDIR}/sean/Desktop/hive/Steamworks-CS/STEAM_SDK/redistributable_bin/${OSDIR}")</div><div><span class="" style="white-space:pre"> </span>ENDIF()</div>
<div>ENDIF()<br><br>Hope that helps... thank you for offering to document this!!</div></div><div> - Sean</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 17, 2014 at 10:26 AM, David Irvine <span dir="ltr"><<a href="mailto:david.irvine@maidsafe.net" target="_blank">david.irvine@maidsafe.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Do you have instructions for how you achieved that. I would be very interested and happy to document them. We have some instructions here <a href="https://github.com/maidsafe/MaidSafe/wiki/Hacking-with-Clang-llvm-abi-and-llvm-libc" target="_blank">https://github.com/maidsafe/MaidSafe/wiki/Hacking-with-Clang-llvm-abi-and-llvm-libc</a> that I would love to update for releasing static linked binaries in linux (and OSX fro that matter). </div>
<div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Sun, May 11, 2014 at 9:25 PM, Richard Pennington <span dir="ltr"><<a href="mailto:rich@pennware.com" target="_blank">rich@pennware.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div bgcolor="#FFFFFF" text="#000000"><div><div>
<div>On 05/11/2014 03:16 PM, Sean Colombo
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi there,
<div>When releasing an OSX app using libc++, is there any
standard way to make sure the user has this dependency
installed?<br>
<br>
It appears that users on OSX 10.6 and below do not have libc++
by default (that's around 20% of OS X users at the moment).<br>
<br>
If I simply package libc++.1.dylib with my app, I assume it
will continue to fail because there seems to be a large number
of cascading dependencies. Is there some script I could run
at installation-time to make sure libc++ and all of its
dependencies get installed?<br>
<br>
Thanks for any pointers you could give me!</div>
<div> - Sean Colombo</div>
</div>
<br>
</blockquote>
<br></div></div>
For my project (<a href="http://ellcc.org" target="_blank">http://ellcc.org</a>), I'm creating Linux static
binaries for everything to eliminate dependencies. On an x86_64
system the resulting static binaries are actually smaller than the
normal clang/LLVM dynamically linked binaries:<br>
<br>
<a href="http://ellcc.org/blog/?page_id=289" target="_blank"></a>[~] dev% size
llvm-dir/bin/clang ellcc/bin/ecc<br>
text data bss dec hex filename<br>
57361633 2674424 95400 60131457 3958881
llvm-dir/bin/clang<br>
48301230 53168 95600 48449998 2e349ce
ellcc/bin/ecc<br>
[~] dev% file llvm-dir/bin/clang ellcc/bin/ecc<br>
llvm-dir/bin/clang: ELF 64-bit LSB executable, x86-64, version 1
(GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux
2.6.32, BuildID[sha1]=7824be96a50ef5c4aa3501c9f32e18399397e9c6,
stripped<br>
ellcc/bin/ecc: ELF 64-bit LSB executable, x86-64, version 1
(SYSV), statically linked,
BuildID[sha1]=c604e1efa1b99bf305bb76e7ac170c9d0019e96e, not stripped<br>
[~] dev% <br>
<br>
I use libc++, libc++abi, compiler-rt, and musl (all compiled
statically of course) to build the executables.<br>
<br>
-Rich<br>
</div>
<br></div></div><div class="">_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><br>David Irvine<div><div>twitter: @metaquestions</div><div>blog: <a href="http://metaquestions.me" target="_blank">http://metaquestions.me</a></div>
</div></div>
</font></span></div>
</blockquote></div><br></div>