blob: 7d155a52aca547fe2385e7853d494c9359503920 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)))
|