Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005105OCamlOCaml generalpublic2010-07-16 20:012010-07-28 15:15
Reportercookedm 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.12.0+beta1 or 3.12.0+rc1 
Target VersionFixed in Version3.12.0+dev 
Summary0005105: Regression: changes to disable natdynlink for 32-bit OSX also disable using shared libraries
Description3.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).]
TagsNo tags attached.
Attached Filespatch file icon allow-shared-libraries-32bit-osx.patch [^] (970 bytes) 2010-07-16 20:01 [Show Content]

- Relationships

-  Notes
(0005625)
doligez (administrator)
2010-07-28 15:15

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

- Issue History
Date Modified Username Field Change
2010-07-16 20:01 cookedm New Issue
2010-07-16 20:01 cookedm File Added: allow-shared-libraries-32bit-osx.patch
2010-07-28 15:15 doligez Note Added: 0005625
2010-07-28 15:15 doligez Status new => closed
2010-07-28 15:15 doligez Resolution open => fixed
2010-07-28 15:15 doligez Fixed in Version => 3.12.0+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker