Add library build to lua #6235

Closed
wants to merge 1 commit into
from

Projects

None yet

4 participants

@bastibe

The formula lua currently only builds the Lua executable but lacks a library to link against.

@bastibe bastibe Add library build to lua
The formula lua currently only builds the Lua executable but lacks a library to link against.
50b87fe
@mxcl
Homebrew member

Can you do this as a patch instead please, the typical way to do that is with brew install lua -i --git. Also is this typical? To want the library?

@nedos

@mxcl, yeah imapfilter uses the lua libraries for example and it currently fails to build for this reason.

@nedos

Okay i just tested this patch and it doesn't work. Lua already builds a dylib but its /usr/local/lib/liblua.5.1.4.dylib. If you compile something that wants to use lua, imapfilter for example, you get this:

ld: library not found for -llua

Making a symlink to /usr/local/lib/liblua.dylib is enough to get the linker to find the lib though. I'll write a patch later.

@nedos

I opened a separate pull request to fix the liblua thing I described

@Sharpie Sharpie added a commit that closed this pull request Sep 15, 2011
@popq popq Lua: Ensure liblua.dylib is created
Adding versionless soft link in INSTALL_LIB to allow linking with -llua (see
homebrew issue #6350 for an example) (Related to name change in commit
9228a05).

Fixes #7642.
Fixes #6648.
Closes #7561.
Closes #7517.
Closes #6235.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
99d7889
@Sharpie Sharpie closed this in 99d7889 Sep 15, 2011
@martinploeger martinploeger added a commit to martinploeger/homebrew that referenced this pull request Oct 8, 2011
@popq popq Lua: Ensure liblua.dylib is created
Adding versionless soft link in INSTALL_LIB to allow linking with -llua (see
homebrew issue #6350 for an example) (Related to name change in commit
9228a05).

Fixes #7642.
Fixes #6648.
Closes #7561.
Closes #7517.
Closes #6235.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
50aa19f
@Sharpie Sharpie added a commit to Sharpie/homebrew that referenced this pull request Sep 12, 2012
@popq popq Lua: Ensure liblua.dylib is created
Adding versionless soft link in INSTALL_LIB to allow linking with -llua (see
homebrew issue #6350 for an example) (Related to name change in commit
9228a05).

Fixes #7642.
Fixes #6648.
Closes #7561.
Closes #7517.
Closes #6235.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
80e4c76
@snakeyroc3 snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this pull request Dec 17, 2012
@popq popq Lua: Ensure liblua.dylib is created
Adding versionless soft link in INSTALL_LIB to allow linking with -llua (see
homebrew issue #6350 for an example) (Related to name change in commit
9228a05).

Fixes #7642.
Fixes #6648.
Closes #7561.
Closes #7517.
Closes #6235.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
660cfd9
@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.