[MPlayer-dev-eng] [PATCH] add soname and version number to libdha
Goetz Waschk
waschk at informatik.uni-rostock.de
Sun Aug 11 20:43:04 CEST 2002
Hi,
this patch adds a soname and a shared library version number to
libdha. This makes it easyer for Linux distributions like Mandrake or
Debian to split the shared library into a library package.
--
Götz Waschk <> master of computer science <> University of Rostock
http://wwwstud.informatik.uni-rostock.de/~waschk/waschk.asc for PGP key
--> Logout Fascism! <--
-------------- next part --------------
Index: libdha/Makefile
===================================================================
RCS file: /cvsroot/mplayer/main/libdha/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- libdha/Makefile 3 Jul 2002 18:59:47 -0000 1.11
+++ libdha/Makefile 11 Aug 2002 18:38:24 -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)
More information about the MPlayer-dev-eng
mailing list