Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression: changes to disable natdynlink for 32-bit OSX also disable using shared libraries #5105

Closed
vicuna opened this issue Jul 16, 2010 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Jul 16, 2010

Original bug ID: 5105
Reporter: cookedm
Status: closed (set by @damiendoligez on 2010-07-28T13:15:16Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.12.0+beta1 or 3.12.0+rc1
Fixed in version: 3.12.0+dev
Category: ~DO NOT USE (was: OCaml general)
Related to: #6900
Monitored by: th5

Bug description

3.11 on 32-bit OSX could use shared libraries perfectly well (e.g., programs compiled with ocamlc did not need the runtime+libraries linked with them). I understand why natdynlink has been disabled for 3.12.0+beta1, but those changes in the configure script have also disabled using shared libraries.

After patching configure to allow shared libraries and disallow natdynlink with the attached patch, I have found no problems. As long as the libraries don't contain non-PIC code (like that generated by ocamlopt :), there shouldn't be any. This is with a Core Duo Macbook with 10.6 (which is 32-bit only).

[In particular, note that linking with shared libraries doesn't need the "-read_only_relocs suppress" that natdynlink requires (and is no longer supported by Apple's ld).]

File attachments

@vicuna
Copy link
Author

vicuna commented Jul 28, 2010

Comment author: @damiendoligez

Thanks for the patch, it will be applied for 3.12.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant