Opened 16 years ago
Closed 16 years ago
#9487 closed Patch - Bug Fix (Fixed)
[PATCH] configure: Fix libs order in check_ld()
| Reported by: | Owned by: | markk | |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.24.1 |
| Component: | MythTV - configure script | Version: | Master Head |
| Severity: | medium | Keywords: | configure check_ld |
| Cc: | Ticket locked: | no |
Description
The configure script defines the function check_ld which tests if a named function can be compiled with specified headers and libraries. However, the libraries are placed after $extralibs in the linker invocation which can cause the link to fail if the tested libraries depend on $extralibs.
This situation occurs for Windows when $extralibs contains the pthreads library and the library under test (e,g. libfftw3) uses pthreads.
The solution is to move $extralibs after the libraries under test. The attached patch does this.
Attachments (1)
Change History (3)
by , 16 years ago
| Attachment: | 1070-config-checkld.diff added |
|---|
comment:1 by , 16 years ago
| Milestone: | unknown → 0.24.1 |
|---|---|
| Owner: | changed from to |
| Status: | new → accepted |
| Version: | Unspecified → Trunk Head |
comment:2 by , 16 years ago
| Resolution: | → Fixed |
|---|---|
| Status: | accepted → closed |
Commited to fixes/0.24 in c66dceb8f9978d721544

Committed to trunk in ef68bf72072f646603ab