<p>Thank you very much. After this and the talk I had yesterday with Clemens everything is clear now. Thanks :)</p>
<div class="gmail_quote">On Nov 25, 2013 12:51 AM, &quot;Ryan Schmidt&quot; &lt;<a href="mailto:ryandesign@macports.org">ryandesign@macports.org</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Nov 24, 2013, at 06:41, Juan Rafael García Blanco &lt;<a href="mailto:juanrgar@gmail.com">juanrgar@gmail.com</a>&gt; wrote:<br>
<br>
&gt; I don’t completely understand the problem we have here. I know 10.9 ships with libc++ instead of libstdc++.<br>
<br>
Mavericks ships with both. The difference is that libc++ is the default now. And you cannot mix libc++ and libstdc++ in a single program.<br>
<br>
&gt; I guess cxx_stdlib is new in trunk; but I don’t understand why we set it to libstdc++, in the first solution. Could you please help me with this?<br>
<br>
The mozjs17 build system was setting MACOSX_DEPLOYMENT_TARGET 10.6, and on 10.9, we use libc++, which was not available on 10.6, so the build failed. The first fix changed the C++ library to libstdc++ but this will cause any program wanting to use mozjs17 on 10.9 to fail unless it too switches its C++ library to libstdc++. We don’t want to do that; we want to use libc++. So the revised fix removes the MACOSX_DEPLOYMENT_TARGET setting from the mozjs17 build system, thereby allowing the MacPorts value of MACOSX_DEPLOYMENT_TARGET (which is the same as the OS X version) to be used instead.<br>

<br>
<br>
&gt; Also, a couple of things:<br>
&gt; - The latest commit, the one that patches the configure script, is ok for me that I don’t have a trunk installation. It builds fine.<br>
&gt; - gjs@1.38.x needs mozjs17 (<a href="https://trac.macports.org/ticket/41356" target="_blank">https://trac.macports.org/ticket/41356</a>). Probably next versions will need mozjs24, so maybe mozjs17 will never ever be needed.<br>

<br>
Even if we never have any ports using mozjs17, the user may want to compile his own software against it.<br>
<br>
</blockquote></div>