Menu

#30 configure.ac: link with -ldl, when using liblua

2.8.3
closed-accepted
5
2014-03-16
2014-02-17
No

Lua is usually built as static library, and the dl-symbols (dlclose(), dlopen()) from lua/src/loadlib.c has to be resolved at link time, when using liblua. Depending how liblua was build, the code for dlclose might not be in liblua.a, so -ldl has to be specified, when linking with liblua.

The attach patch corrects configure.ac, so that always when linking with -llua, a -ldl is added afterwards (except pkg-config finds liblua, then nothing is added).

1 Attachments

Discussion

  • Murray S. Kucherawy

    • assigned_to: Murray S. Kucherawy
     
  • Murray S. Kucherawy

    Applied for next release, thanks!

     
  • Murray S. Kucherawy

    v2.9.1 released.

     
  • Murray S. Kucherawy

    • status: open --> closed-accepted
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.