|View Issue Details [ Jump to Notes ] ||[ Issue History ] [ Print ] |
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0005210||OCaml||OCaml general||public||2011-01-25 19:10||2011-05-17 16:46|
|Assigned To|| |
|Product Version||3.12.0|| |
|Target Version||Fixed in Version|| |
|Summary||0005210: Additional options to control link libraries in OCaml's configure script|
|Description||It 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 Information||Unified diff attached|
|Tags||No tags attached.|
|Attached Files|| ocaml-3.12.0.patch [^] (2,718 bytes) 2011-01-25 19:10 [Show Content]