Ticket #3521 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

ld on mac won't allow -rpath unless you specify macosx_version_min 10.5

Reported by: mwotton Owned by: igloo
Priority: high Milestone: 6.12.1
Component: Compiler Version: 6.11
Keywords: Cc:
Operating System: MacOS X Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

when trying to build a Haskell shared library on Mac OS X, linking fails with this error:

ld: -rpath can only be used when targeting Mac OS X 10.5 or later

this can be tracked down to the DriverPipeline?.hs specifying macosx_version_min to be 10.3. This can be hacked around by passing 10.5 again, but is a bit fragile because ld on Mac takes the last version specified rather than the highest. There may be good reasons to retain <10.5 compatibility, but from IRC conversation with JaffaCake?, ghc depends on 10.5 anyway, so this _should_ make no difference.

Attachments

pipeline.patch Download (320 bytes) - added by mwotton 4 years ago.
patch to increase macosx_version_min to 10.5

Change History

Changed 4 years ago by mwotton

patch to increase macosx_version_min to 10.5

Changed 4 years ago by igloo

  • owner set to igloo
  • difficulty set to Unknown
  • priority changed from normal to high
  • milestone set to 6.12.1

Thanks for the patch; I'll take a look.

Changed 4 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

Applied, thanks!

Note: See TracTickets for help on using tickets.