#47339: p5-alien-wxwidgets, p5-wx: update to latest versions ---------------------------------------+--------------------- Reporter: devans@… | Owner: mojca@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: p5-alien-wxwidgets p5-wx | ---------------------------------------+--------------------- Comment (by mojca@…): It seems to me that the problem with 10.10 has been fixed, but the following chunk of code seems problematic and I need some help with it: {{{ my $tools43 = '/Applications/Xcode.app/Contents/Developer/Tools'; my $restoolpath = ( -d $tools43 ) ? $tools43 : '/Developer/Tools'; sub get_flags { my $this = shift; my %config = $this->SUPER::get_flags; if ($config{CC} =~ /clang\+\+/ || $config{LD} =~ /clang\+\+/) { my $sdkrepl = ''; for my $sdkversion ( qw( 10.9 10.8 10.7 10.6 ) ) { my $macossdk = qq(/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${sdkversion}.sdk); if( -d $macossdk ) { $sdkrepl = 'clang++ -isysroot ' . $macossdk . ' -stdlib=libc++'; last; } } if ( $sdkrepl ) { $config{CC} =~ s/clang\+\+/$sdkrepl/g; $config{LD} =~ s/clang\+\+/$sdkrepl/g; } } return %config; } }}} First of all there is absolutely no guarantee that users installed Xcode under `/Applications/Xcode.app/Contents/Developer/Tools` (I didn't). My workaround so far was to set {{{ my $restoolpath = '/usr/bin'; }}} But I don't understand the rest of the code either. Is it trying to force `libc++` on 10.6, where setting `-isysroot /path/to/sdk` will make sure that it won't work??? And why does it only list 10.6 - 10.9? -- Ticket URL: <https://trac.macports.org/ticket/47339#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X