Skip to content

Commit 1f77ae0

Browse files
committed
Separate SOVERSION from release version
Needed to break API in 0.4 without calling it 1.0.
1 parent da6c9c1 commit 1f77ae0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Make.inc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# -*- mode: makefile-gmake -*-
22

33
OS := $(shell uname)
4+
# Do not forget to bump SOMINOR when changing VERSION,
5+
# and SOMAJOR when changing API
46
VERSION = 0.4
5-
VERSION_SPLIT = $(subst ., , $(VERSION))
7+
SOMAJOR = 1
8+
SOMINOR = 0
69
DESTDIR =
710
prefix = /usr/local
811
bindir = $(prefix)/bin

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ libopenlibm.$(SHLIB_EXT): $(OBJS)
3232
ifeq ($(OS),WINNT)
3333
$(CC) -shared $(OBJS) $(LDFLAGS) -Wl,$(SONAME_FLAG),libopenlibm.$(SHLIB_EXT) -o libopenlibm.$(SHLIB_EXT)
3434
else
35-
$(CC) -shared $(OBJS) $(LDFLAGS) -Wl,$(SONAME_FLAG),libopenlibm.$(SHLIB_EXT).$(word 1,$(VERSION_SPLIT)) -o libopenlibm.$(SHLIB_EXT).$(VERSION)
36-
@-ln -sf libopenlibm.$(SHLIB_EXT).$(VERSION) libopenlibm.$(SHLIB_EXT).$(word 1,$(VERSION_SPLIT))
37-
@-ln -sf libopenlibm.$(SHLIB_EXT).$(VERSION) libopenlibm.$(SHLIB_EXT)
35+
$(CC) -shared $(OBJS) $(LDFLAGS) -Wl,$(SONAME_FLAG),libopenlibm.$(SHLIB_EXT).$(SOMAJOR) -o libopenlibm.$(SHLIB_EXT).$(SOMAJOR).$(SOMINOR)
36+
@-ln -sf libopenlibm.$(SHLIB_EXT).$(SOMAJOR).$(SOMINOR) libopenlibm.$(SHLIB_EXT).$(SOMAJOR)
37+
@-ln -sf libopenlibm.$(SHLIB_EXT).$(SOMAJOR).$(SOMINOR) libopenlibm.$(SHLIB_EXT)
3838
endif
3939

4040
clean:

0 commit comments

Comments
 (0)