Library name without prefix: <lib>.so.<ver>

Adding symbolic link: <lib>.so -> <lib.so.<ver>
This commit is contained in:
tomas
2005-06-24 01:49:16 +00:00
parent 3479c6d935
commit 1a1f08c803
2 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
# $Id: Makefile,v 1.24 2005/06/10 13:01:15 tomas Exp $ # $Id: Makefile,v 1.25 2005/06/24 01:49:16 tomas Exp $
T= lfs T= lfs
V= 1.2 V= 1.2
@@ -22,7 +22,7 @@ $(COMPAT_O): $(COMPAT_DIR)/compat-5.1.c
install: src/$(LIBNAME) install: src/$(LIBNAME)
mkdir -p $(LUA_LIBDIR) mkdir -p $(LUA_LIBDIR)
cp src/$(LIBNAME) $(LUA_LIBDIR) cp src/$(LIBNAME) $(LUA_LIBDIR)
ln -f -s $(LUA_LIBDIR)/$(LIBNAME) $(LUA_LIBDIR)/$T.so cd $(LUA_LIBDIR); ln -f -h -s $(LIBNAME) $T.so
clean: clean:
rm -f src/$(LIBNAME) $(OBJS) rm -f src/$(LIBNAME) $(OBJS) $(COMPAT_O)

6
config
View File

@@ -2,13 +2,13 @@
# System's libraries directory (where binary libraries are installed) # System's libraries directory (where binary libraries are installed)
LUA_LIBDIR= /usr/local/lib/lua/5.0 LUA_LIBDIR= /usr/local/lib/lua/5.0
# Lua includes directory # Lua includes directory
LUA_INC= /usr/local/include/lua5 LUA_INC= /usr/local/include
# OS dependent # OS dependent
LIB_OPTION= -shared #for Linux LIB_OPTION= -shared #for Linux
#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X #LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
LIBNAME= lib$T-$V.so LIBNAME= $T.so.$V
COMPAT_DIR= ../compat/src COMPAT_DIR= ../compat/src
# Compilation directives # Compilation directives
@@ -17,4 +17,4 @@ INCS= -I$(LUA_INC) -I$(COMPAT_DIR)
CFLAGS= $(WARN) $(INCS) CFLAGS= $(WARN) $(INCS)
CC= gcc CC= gcc
# $Id: config,v 1.13 2005/06/10 13:01:15 tomas Exp $ # $Id: config,v 1.14 2005/06/24 01:49:16 tomas Exp $