Opened 13 years ago

Closed 13 years ago

#9487 closed Patch - Bug Fix (Fixed)

[PATCH] configure: Fix libs order in check_ld()

Reported by: Lawrence Rust <lvr@…> 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)

1070-config-checkld.diff (439 bytes) - added by Lawrence Rust <lvr@…> 13 years ago.

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by Lawrence Rust <lvr@…>

Attachment: 1070-config-checkld.diff added

comment:1 Changed 13 years ago by markk

Milestone: unknown0.24.1
Owner: changed from Janne Grunau to markk
Status: newaccepted
Version: UnspecifiedTrunk Head

Committed to trunk in ef68bf72072f646603ab

comment:2 Changed 13 years ago by markk

Resolution: Fixed
Status: acceptedclosed

Commited to fixes/0.24 in c66dceb8f9978d721544

Note: See TracTickets for help on using tickets.