From c73ffcc32b1d750f19767f1d90e41e16b26c39db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pop=20Qvarnstro=CC=88m?= Date: Thu, 8 Sep 2011 23:02:07 +0200 Subject: [PATCH] Lua: Ensure liblua.dylib is created Adding versionless soft link in INSTALL_LIB to allow linking with -llua (see homebrew issue Homebrew/homebrew#6350 for an example) (Related to name change in commit 9228a05f98). Fixes Homebrew/homebrew#7642. Fixes Homebrew/homebrew#6648. Closes Homebrew/homebrew#7561. Closes Homebrew/homebrew#7517. Closes Homebrew/homebrew#6235. Signed-off-by: Charlie Sharpsteen --- Formula/lua.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Formula/lua.rb b/Formula/lua.rb index 914ef7fef97..1830bd28e20 100644 --- a/Formula/lua.rb +++ b/Formula/lua.rb @@ -64,11 +64,12 @@ index 6e78f66..6b48d2b 100644 TO_MAN= lua.1 luac.1 # Lua version and release. -@@ -64,6 +64,7 @@ install: dummy +@@ -64,6 +64,8 @@ install: dummy cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC) cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB) cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN) + ln -s -f liblua.5.1.4.dylib $(INSTALL_LIB)/liblua.5.1.dylib ++ ln -s -f liblua.5.1.dylib $(INSTALL_LIB)/liblua.dylib ranlib: cd src && cd $(INSTALL_LIB) && $(RANLIB) $(TO_LIB)