Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix libdir detection #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jerome-pouiller
Copy link

This patch fix installation issue at least on Debian and Ubuntu.

In lua5.1.pc delivered in debian package, variable to be used to install lua
binary module is INSTALL_CMOD:

The following are intended to be used via "pkg-config --variable".

Install paths for Lua modules. For example, if a package wants to install

Lua source modules to the /usr/local tree, call pkg-config with

"--define-variable=prefix=/usr/local" and "--variable=INSTALL_LMOD".

INSTALL_LMOD=${prefix}/share/lua/${major_version}
INSTALL_CMOD=${prefix}/lib/${deb_host_multiarch}/lua/${major_version}

This patch fix installation issue at least on Debian and Ubuntu.

In lua5.1.pc delivered in debian package, variable to be used to install lua
binary module is INSTALL_CMOD:

 # The following are intended to be used via "pkg-config --variable".
 # Install paths for Lua modules.  For example, if a package wants to install
 # Lua source modules to the /usr/local tree, call pkg-config with
 # "--define-variable=prefix=/usr/local" and "--variable=INSTALL_LMOD".
 INSTALL_LMOD=${prefix}/share/lua/${major_version}
 INSTALL_CMOD=${prefix}/lib/${deb_host_multiarch}/lua/${major_version}
@wrzasa
Copy link

wrzasa commented Feb 24, 2016

It helped if I run
./configure LUA_CFLAGS=-I/usr/include/lua5.1 LUA_LIBS=-llua5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants