Boost C++ Libraries: Ticket #8592: Cross compiling on OS X to linux gets the shared object name wrong https://svn.boost.org/trac10/ticket/8592 <p> I'm compiling boost for openwrt on my OS X machine, but it fails near the end, because the shared libraries produced are given the extension .dylib instead of .so. It also affect SONAME inside the lib, which stops me from just renaming them. </p> <p> I'm not really sure what the best way of reproduceing is, short of compiling openwrt: </p> <pre class="wiki">svn co svn://svn.openwrt.org/openwrt/tags/attitude_adjustment_12.09 cd attitude_adjustment_12.09 ./scripts/feeds update -a ./scripts/feeds install -a make menuconfig (enable boost_system in libraries) make V=s </pre><p> Here's the command used to build boost if that helps: </p> <p> <code>( cd /Volumes/data/Unix/openwrt/wl500gp/build_dir/target-mipsel_uClibc-0.9.33.2/boost_1_49_0 ; echo "using gcc : mipsel : mipsel-openwrt-linux-gcc : &lt;compileflags&gt;\"-Os -pipe -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float\" &lt;cxxflags&gt;\"-Os -pipe -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float\" &lt;linkflags&gt;\"-L/Volumes/data/Unix/openwrt/wl500gp/staging_dir/target-mipsel_uClibc-0.9.33.2/usr/lib -L/Volumes/data/Unix/openwrt/wl500gp/staging_dir/target-mipsel_uClibc-0.9.33.2/lib -L/Volumes/data/Unix/openwrt/wl500gp/staging_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33.2/usr/lib -L/Volumes/data/Unix/openwrt/wl500gp/staging_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33.2/lib -pthread -lrt\" ;" &gt; tools/build/v2/user-config.jam ; bjam '-sBUILD=release &lt;optimization&gt;space &lt;inlining&gt;on &lt;debug-symbols&gt;off' --toolset=gcc-mipsel --build-type=minimal --layout=system --disable-long-double --target=mipsel-openwrt-linux --host=mipsel-openwrt-linux --build=x86_64-apple-darwin12.3.0 --program-prefix="" --program-suffix="" --prefix=/Volumes/data/Unix/openwrt/wl500gp/build_dir/target-mipsel_uClibc-0.9.33.2/boost_1_49_0/ipkg-install --exec-prefix=/Volumes/data/Unix/openwrt/wl500gp/build_dir/target-mipsel_uClibc-0.9.33.2/boost_1_49_0/ipkg-install --bindir=/Volumes/data/Unix/openwrt/wl500gp/build_dir/target-mipsel_uClibc-0.9.33.2/boost_1_49_0/ipkg-install/bin --sbindir=/Volumes/data/Unix/openwrt/wl500gp/build_dir/target-mipsel_uClibc-0.9.33.2/boost_1_49_0/ipkg-install/sbin --libexecdir=/Volumes/data/Unix/openwrt/wl500gp/build_dir/target-mipsel_uClibc-0.9.33.2/boost_1_49_0/ipkg-install/lib --sysconfdir=/etc --datadir=/Volumes/data/Unix/openwrt/wl500gp/build_dir/target-mipsel_uClibc-0.9.33.2/boost_1_49_0/ipkg-install/share --localstatedir=/var --mandir=/Volumes/data/Unix/openwrt/wl500gp/build_dir/target-mipsel_uClibc-0.9.33.2/boost_1_49_0/ipkg-install/man --infodir=/Volumes/data/Unix/openwrt/wl500gp/build_dir/target-mipsel_uClibc-0.9.33.2/boost_1_49_0/ipkg-install/info --disable-nls --without-chrono --without-date_time --without-exception --without-filesystem --without-graph --without-graph_parallel --without-locale --without-math --without-mpi --without-python --without-random --without-regex --without-serialization --without-signals --without-test --without-thread --without-timer --without-wave -sNO_BZIP2=1 -sZLIB_INCLUDE=/Volumes/data/Unix/openwrt/wl500gp/staging_dir/target-mipsel_uClibc-0.9.33.2/usr/include -sZLIB_LIBPATH=/Volumes/data/Unix/openwrt/wl500gp/staging_dir/target-mipsel_uClibc-0.9.33.2/usr/lib install )</code> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8592 Trac 1.4.3 anonymous Mon, 20 May 2013 06:42:02 GMT <link>https://svn.boost.org/trac10/ticket/8592#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8592#comment:1</guid> <description> <p> Also reported at openwrt bug 13548 (not sure why I reported here first). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Mon, 03 Jun 2013 21:08:56 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8592#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8592#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/8592#comment:1" title="Comment 1">anonymous</a>: </p> <blockquote class="citation"> <p> Also reported at openwrt bug 13548 (not sure why I reported here first). </p> </blockquote> <p> So, can we close it? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 20 Jun 2013 16:46:11 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8592#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8592#comment:3</guid> <description> <p> Had the same issue with 1_47_0 on Mac. Fixed by adding target-os=linux to the ./b2 --toolset option. </p> <pre class="wiki">Index: Makefile =================================================================== --- Makefile (revision 36978) +++ Makefile (working copy) @@ -194,7 +194,7 @@ bjam \ '-sBUILD=release &lt;optimization&gt;space &lt;inlining&gt;on &lt;debug-symbols&gt;off' \ $(filter -j%,$(PKG_JOBS)) \ - --toolset=gcc-$(ARCH) --build-type=minimal --layout=system \ + --toolset=gcc-$(ARCH) target-os=linux --build-type=minimal --layout=system \ --disable-long-double \ $(CONFIGURE_ARGS) \ $(if $(CONFIG_PACKAGE_boost-chrono),,--without-chrono) \ </pre> </description> <category>Ticket</category> </item> </channel> </rss>