Ticket #32590: patch-Makefile.diff

File patch-Makefile.diff, 689 bytes (added by andremm@…, 13 years ago)
  • Makefile

    old new  
    4141# What to install.
    4242TO_BIN= lua luac
    4343TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
    44 TO_LIB= liblua.a
     44TO_LIB= liblua.a liblua.dylib
    4545TO_MAN= lua.1 luac.1
    4646
    4747# Lua version and release.
     
    6363        cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
    6464        cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
    6565        cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
     66        cd $(INSTALL_LIB) && ln -s liblua.dylib liblua.%VERSION%.dylib
     67        cd $(INSTALL_LIB) && ln -s liblua.dylib liblua.%COMPAT_VERSION%.dylib
    6668
    6769uninstall:
    6870        cd src && cd $(INSTALL_BIN) && $(RM) $(TO_BIN)