mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
adds a soname and a shared library version number to libdha.
patch by Goetz Waschk <waschk@informatik.uni-rostock.de> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7006 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c17e80d20f
commit
ad0f7f3b26
@ -9,7 +9,7 @@ SHORTNAME = libdha.dll
|
|||||||
else
|
else
|
||||||
SHORTNAME = libdha.so
|
SHORTNAME = libdha.so
|
||||||
endif
|
endif
|
||||||
LIBNAME = libdha-$(VERSION).so
|
LIBNAME = libdha.so.$(VERSION)
|
||||||
|
|
||||||
SRCS=libdha.c mtrr.c pci.c pci_names.c
|
SRCS=libdha.c mtrr.c pci.c pci_names.c
|
||||||
OBJS=$(SRCS:.c=.o)
|
OBJS=$(SRCS:.c=.o)
|
||||||
@ -30,7 +30,7 @@ endif
|
|||||||
$(CC) -c $(CFLAGS) -o $@ $<
|
$(CC) -c $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
$(LIBNAME): $(OBJS)
|
$(LIBNAME): $(OBJS)
|
||||||
$(CC) -shared -o $(LIBNAME) $(OBJS) $(LIBS)
|
$(CC) -shared -Wl,-soname -Wl,$(LIBNAME) -o $(LIBNAME) $(OBJS) $(LIBS)
|
||||||
ln -sf $(LIBNAME) $(SHORTNAME)
|
ln -sf $(LIBNAME) $(SHORTNAME)
|
||||||
|
|
||||||
all: $(LIBNAME) $(SHORTNAME)
|
all: $(LIBNAME) $(SHORTNAME)
|
||||||
|
Loading…
Reference in New Issue
Block a user