Skip to content

Commit b38daa2

Browse files
committed
Merge pull request #63 from JuliaLang/sf/soname2
Tweak SONAME handling
2 parents 08f66bc + b038823 commit b38daa2

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Make.inc

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

33
OS := $(shell uname)
4-
VERSION = 0.3.0
4+
VERSION = 0.3
55
VERSION_SPLIT = $(subst ., , $(VERSION))
66
DESTDIR =
77
prefix = /usr/local

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ 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).$(VERSION) -o libopenlibm.$(SHLIB_EXT).$(VERSION)
36-
@-ln -sf libopenlibm.$(SHLIB_EXT).$(VERSION) libopenlibm.$(SHLIB_EXT).$(word 1,$(VERSION_SPLIT)).$(word 2,$(VERSION_SPLIT))
35+
$(CC) -shared $(OBJS) $(LDFLAGS) -Wl,$(SONAME_FLAG),libopenlibm.$(SHLIB_EXT).$(word 1,$(VERSION_SPLIT)) -o libopenlibm.$(SHLIB_EXT).$(VERSION)
3736
@-ln -sf libopenlibm.$(SHLIB_EXT).$(VERSION) libopenlibm.$(SHLIB_EXT).$(word 1,$(VERSION_SPLIT))
3837
@-ln -sf libopenlibm.$(SHLIB_EXT).$(VERSION) libopenlibm.$(SHLIB_EXT)
3938
endif

0 commit comments

Comments
 (0)