Opened 7 years ago

Closed 7 years ago

#8729 closed defect (fixed)

lua-5.3.3: the pkg-config file should include "-ldl".

Reported by: Jeremy Henty Owned by: bdubbs@…
Priority: normal Milestone: 8.0
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

Some lua programs must link to the dl library. (Example file attached.) This means that lua.pc should include "-llua -ldl -lm" in the "Libs:" line instead of just "-llua -lm". Both conky-1.9.0 (which uses autotools) and conky-1.10.6 (which uses cmake) failed to link the conky executable until I fixed lua.pc in this way.

Attachments (1)

foo.c (596 bytes ) - added by Jeremy Henty 7 years ago.
example to demonstrate the need for "-ldl"

Download all attachments as: .zip

Change History (5)

by Jeremy Henty, 7 years ago

Attachment: foo.c added

example to demonstrate the need for "-ldl"

comment:1 by bdubbs@…, 7 years ago

Have you reported this upstream?

comment:2 by Jeremy Henty, 7 years ago

Upstream does not support pkg-config . BLFS has special instructions to create lua.pc .

comment:3 by bdubbs@…, 7 years ago

Owner: changed from blfs-book@… to bdubbs@…
Status: newassigned

OK, I'll make the change.

comment:4 by bdubbs@…, 7 years ago

Resolution: fixed
Status: assignedclosed

Fixed at revision 18155.

Note: See TracTickets for help on using tickets.