changeset 7005:40c596e65526

adds a soname and a shared library version number to libdha. patch by Goetz Waschk <waschk@informatik.uni-rostock.de>
author arpi
date Wed, 14 Aug 2002 21:44:56 +0000
parents 8eff71f38685
children c0b490505298
files libdha/Makefile
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libdha/Makefile	Wed Aug 14 21:43:49 2002 +0000
+++ b/libdha/Makefile	Wed Aug 14 21:44:56 2002 +0000
@@ -9,7 +9,7 @@
 else
 SHORTNAME = libdha.so
 endif
-LIBNAME = libdha-$(VERSION).so
+LIBNAME = libdha.so.$(VERSION)
 
 SRCS=libdha.c mtrr.c pci.c pci_names.c
 OBJS=$(SRCS:.c=.o)
@@ -30,7 +30,7 @@
 	$(CC) -c $(CFLAGS) -o $@ $<
 
 $(LIBNAME):     $(OBJS)
-	$(CC) -shared -o $(LIBNAME) $(OBJS) $(LIBS)
+	$(CC) -shared -Wl,-soname -Wl,$(LIBNAME) -o $(LIBNAME) $(OBJS) $(LIBS)
 	ln -sf $(LIBNAME) $(SHORTNAME)
 
 all:    $(LIBNAME) $(SHORTNAME)