]> git.sesse.net Git - mlt/commitdiff
Merge pull request #25 from RedDwarf69/versioned_symbols
authorDan Dennedy <dan@dennedy.org>
Wed, 13 Feb 2013 00:36:18 +0000 (16:36 -0800)
committerDan Dennedy <dan@dennedy.org>
Wed, 13 Feb 2013 00:36:18 +0000 (16:36 -0800)
Use symbol versioning

1  2 
src/framework/Makefile

diff --combined src/framework/Makefile
index 6c64860136b17fbd9c44b12dcf01e748e307f3df,3cbc43ed7cd48ccf6d6a084acf9dc47131b4ab9f..7c79fbc8d463734e95a71ff6eac65f05b6e48ffa
@@@ -17,7 -17,7 +17,7 @@@ els
  NAME = libmlt$(LIBSUF)
  TARGET = $(NAME).$(version)
  SONAME = $(NAME).$(soversion)
- SHFLAGS += -Wl,-soname,$(SONAME)
+ SHFLAGS += -Wl,-soname,$(SONAME) -Wl,--version-script=mlt.vers
  endif
  
  OBJS = mlt_frame.o \
@@@ -79,7 -79,7 +79,7 @@@ OBJS += ../win32/win32.
  SRCS += ../win32/win32.c
  endif
  
 -CFLAGS += $(RDYNAMIC) -DPREFIX="\"$(prefix)\"" -DLIBDIR="\"$(libdir)\"" -DMLTDATADIR="\"$(datadir)\""
 +CFLAGS += $(RDYNAMIC) -DPREFIX_DATA="\"$(mltdatadir)\"" -DPREFIX_LIB="\"$(moduledir)\""
  
  LDFLAGS += $(LIBDL) -lpthread
  
@@@ -114,8 -114,8 +114,8 @@@ install
        fi
        install -d "$(DESTDIR)$(prefix)/include/mlt/framework"
        install -m 644 $(INCS) "$(DESTDIR)$(prefix)/include/mlt/framework"
 -      install -d "$(DESTDIR)$(datadir)/mlt"
 -      install -m 644 metaschema.yaml "$(DESTDIR)$(datadir)/mlt/"
 +      install -d "$(DESTDIR)$(mltdatadir)"
 +      install -m 644 metaschema.yaml "$(DESTDIR)$(mltdatadir)"
  
  uninstall:
        rm -f "$(DESTDIR)$(libdir)/$(TARGET)"
                rm -f "$(DESTDIR)$(libdir)/$(NAME)" ; \
        fi
        rm -rf "$(DESTDIR)$(prefix)/include/mlt/framework"
 -      rm -f "$(DESTDIR)$(datadir)/mlt/metaschema.yaml"
 +      rm -f "$(DESTDIR)$(mltdatadir)/metaschema.yaml"
  
  ifneq ($(wildcard .depend),)
  include .depend