#7559: `./configure --with-macosx-deployment-target=` doesn't work -------------------------+-------------------------------------------------- Reporter: altaic | Owner: Type: bug | Status: new Priority: normal | Component: Build System Version: 7.6.1 | Keywords: Os: MacOS X | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: -------------------------+-------------------------------------------------- This is tested on HEAD with OS X 10.8.2 using Xcode 4.5.2.
Any version X in `./configure --with-macosx-deployment-target=X` results in configure failing with: {{{ checking Mac OS X deployment target... configure: error: Unknown deployment target X }}} Examining configure reveals that the option appears to have bit rotted since SDK paths all point to "/Developer/...", whereas these days it should point inside the Xcode application bundle. The SDK path should be gotten by appending "/Platforms/MacOSX.platform/Developer/SDKs/MacOSX<version>.sdk" to the output of `xcode-select --print-path`, resulting in something like "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk". If continuing support for systems with old versions of Xcode is desirable, we should first try generating a path using `xcode-select`, and if that fails we should fall back to trying "/Developer/...". -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7559> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs