[MacPorts] #52442: opencsg @1.4.0 does not honor -stdlib=libc++ and patch to fix

MacPorts noreply at macports.org
Wed Sep 28 21:37:16 CEST 2016


#52442: opencsg @1.4.0 does not honor -stdlib=libc++ and patch to fix
-------------------------------------+--------------------------------
 Reporter:  ken.cunningham.webuse@…  |      Owner:  macports-tickets@…
     Type:  defect                   |     Status:  new
 Priority:  Normal                   |  Milestone:
Component:  ports                    |    Version:  2.3.4
 Keywords:                           |       Port:  opencsg
-------------------------------------+--------------------------------
 openCSG is a component of OpenSCAD. By default, it does not honour
 -stdlib=libc++, and links against libstdc++.

 {{{
 $ otool -L libopencsg.1.4.0.dylib
 libopencsg.1.4.0.dylib:
         /opt/local/lib/libopencsg.1.dylib (compatibility version 1.4.0,
 current version 1.4.0)
         /opt/local/lib/libGLEW.2.0.0.dylib (compatibility version 2.0.0,
 current version 2.0.0)
         /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
 (compatibility version 1.0.0, current version 1.0.0)
         /System/Library/Frameworks/AGL.framework/Versions/A/AGL
 (compatibility version 1.0.0, current version 1.0.0)
         /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
 version 7.9.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 125.2.11)
 }}}

 there is no configure script to send arguments to, so the attached patch
 modifies the Portfile to reinplace the Makefile directly to make it link
 to the correct libc++.

 See also [ticket:51840}

 After patch:


 {{{
 $ otool -L libopencsg.1.4.0.dylib
 libopencsg.1.4.0.dylib:
         /opt/local/lib/libopencsg.1.dylib (compatibility version 1.4.0,
 current version 1.4.0)
         /opt/local/lib/libGLEW.2.0.0.dylib (compatibility version 2.0.0,
 current version 2.0.0)
         /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
 (compatibility version 1.0.0, current version 1.0.0)
         /System/Library/Frameworks/AGL.framework/Versions/A/AGL
 (compatibility version 1.0.0, current version 1.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 3.7.1)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 125.2.11)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 3.7.0)
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/52442>
MacPorts <https://www.macports.org/>
Ports system for the Mac operating system


More information about the macports-tickets mailing list