diff options
Diffstat (limited to 'community/dmd/soname.diff')
-rw-r--r-- | community/dmd/soname.diff | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/community/dmd/soname.diff b/community/dmd/soname.diff new file mode 100644 index 000000000..7d155a52a --- /dev/null +++ b/community/dmd/soname.diff @@ -0,0 +1,15 @@ +diff --git a/posix.mak b/posix.mak +index 8fd953e..3776bb4 100644 +--- a/posix.mak ++++ b/posix.mak +@@ -153,8 +153,8 @@ DDOC=$(DMD) + VERSION=../dmd/VERSION + + # Set SONAME, the name of the shared library. +-# The awk script will produce the last 2 digits of the version string, i.e. 2.063 produces 63 +-SONAME = libphobos2.so.0.$(shell awk -F. '{ print $$NF + 0 }' $(VERSION)) ++# The awk script will return the second group without leading zeros of the version string, i.e. 2.063.2 produces 63 ++SONAME = libphobos2.so.0.$(shell awk -F. '{ print $$2 + 0 }' $(VERSION)) + + # Set LIB, the ultimate target + ifeq (,$(findstring win,$(OS))) |