[AD] Compatibility version in makefile

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Dear all,

Please find below a patch to set the compatibility version of Allegro to 4.2.0. This is the earliest version that is 100% compatible with the current version (as discussed on A.cc) i.e if a function is added during the 4.2.x series, this needs to be updated to prevent a newer executable linking to an older library (which doesn't have that function). Hopefully, functions will not be added in 4.2, but the feature is there, anyway.

This is appropriate for OSX but I added the define to makefile.ver in case other platforms can make use of it.

Pete

Index: makefile.osx
===================================================================
RCS file: /cvsroot/alleg/allegro/makefile.osx,v
retrieving revision 1.51
diff -u -r1.51 makefile.osx
--- makefile.osx        7 Jun 2005 11:56:48 -0000       1.51
+++ makefile.osx        12 Jul 2005 17:54:56 -0000
@@ -51,7 +51,7 @@
 LIB_NAME = lib/macosx/lib$(VERSION)-$(shared_version).dylib
 LIB_MAIN_NAME = lib/macosx/lib$(VERSION)-main.a

-DYLINK_FLAGS = -prebind -seg1addr 0x30000000 -dylib_compatibility_version=4.0.0 -dylib_current_version=$(shared_version) +DYLINK_FLAGS = -prebind -seg1addr 0x30000000 -compatibility_version $(compatibility_version) -current_version $(shared_version)

 INSTALL_NAME = -install_name lib$(VERSION)-$(shared_major_minor).dylib
INSTALL_NAME_EMBED = -install_name "`echo "@executable_path/../Frameworks/$(FRAMEWORK_NAME).framework/Versions/ $(shared_version)/$(FRAMEWORK_NAME)" | sed 's!//*!/!g'`"
Index: makefile.ver
===================================================================
RCS file: /cvsroot/alleg/allegro/makefile.ver,v
retrieving revision 1.34
diff -u -r1.34 makefile.ver
--- makefile.ver        1 Apr 2005 08:43:43 -0000       1.34
+++ makefile.ver        12 Jul 2005 17:54:56 -0000
@@ -5,3 +5,6 @@
 # Shared library versions for Unix
 shared_version = 4.2.0
 shared_major_minor = 4.2
+
+# Compatibility version for Mac OS X
+compatibility_version = 4.2.0





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/