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

Additional options to control link libraries in OCaml's configure script #5210

Closed
vicuna opened this issue Jan 25, 2011 · 2 comments
Closed

Comments

@vicuna
Copy link

vicuna commented Jan 25, 2011

Original bug ID: 5210
Reporter: @dra27
Assigned to: @shindere
Status: assigned (set by @mshinwell on 2016-12-08T11:48:09Z)
Resolution: open
Priority: normal
Severity: feature
Version: 3.12.0
Category: configure and build/install
Tags: patch

Bug 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

File attachments

@vicuna
Copy link
Author

vicuna commented Dec 8, 2016

Comment author: @mshinwell

@dra27 Please move to Github if still relevant

@vicuna
Copy link
Author

vicuna commented Jan 8, 2017

Comment author: @dra27

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.

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

No branches or pull requests

3 participants