Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005210OCamlconfigure and build/installpublic2011-01-25 19:102017-01-08 10:47
Reporterdra 
Assigned Toshindere 
PrioritynormalSeverityfeatureReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version3.12.0 
Target VersionFixed in Version 
Summary0005210: Additional options to control link libraries in OCaml's configure script
DescriptionIt would be handy to be able to override the link options for libcurses, libm and pthreads for very obscure cross-compiling builds!

The attached patch adds -curseslib, -mathlib and -pthreadlib switches to configure.

The support in -pthreadlib is possibly questionable as in my particular instance I wanted to pass the full path to libpthread.so.2 and a parameter beginning with a '/' instead of '-' is embedded into hasgot.c by the hasgot script and so causes the test for POSIX threads to fail. I therefore sort of cheated by allowing configure to test for pthreads using -pthread but then override the link options afterwards.
Additional InformationUnified diff attached
Tagspatch
Attached Filespatch file icon ocaml-3.12.0.patch [^] (2,718 bytes) 2011-01-25 19:10 [Show Content]

- Relationships

-  Notes
(0016865)
shinwell (developer)
2016-12-08 12:48

@dra Please move to Github if still relevant
(0017113)
dra (developer)
2017-01-08 10:47

It's not important to me any more (at one time I needed to be able to have an OCaml on FreeBSD which could compile to target an older version of FreeBSD using its compatibility libraries, but fortunately that hell got replaced by a Debian install...).

It might of interest to SebastiƩn for the autoconf stuff, but otherwise I'm happy to close this.

- Issue History
Date Modified Username Field Change
2011-01-25 19:10 dra New Issue
2011-01-25 19:10 dra File Added: ocaml-3.12.0.patch
2011-05-17 16:46 doligez Status new => acknowledged
2013-10-08 15:22 doligez Tag Attached: patch
2016-12-08 12:48 shinwell Note Added: 0016865
2016-12-08 12:48 shinwell Assigned To => dra
2016-12-08 12:48 shinwell Status acknowledged => assigned
2016-12-08 16:33 shinwell Category OCaml general => OCaml internal build/install (Makefiles, configure)
2017-01-08 10:47 dra Note Added: 0017113
2017-01-08 10:47 dra Assigned To dra => shindere
2017-02-23 16:38 doligez Category OCaml internal build/install (Makefiles, configure) => configure and build/install


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker