You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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
The text was updated successfully, but these errors were encountered: