From b038823eaa648a6c9e5b3cb2316c7bf85e2e9714 Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Thu, 12 Jun 2014 14:27:44 -0700 Subject: [PATCH] Tweak SONAME handling --- Make.inc | 2 +- Makefile | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Make.inc b/Make.inc index 0d76066..c2fb658 100644 --- a/Make.inc +++ b/Make.inc @@ -1,7 +1,7 @@ # -*- mode: makefile-gmake -*- OS := $(shell uname) -VERSION = 0.3.0 +VERSION = 0.3 VERSION_SPLIT = $(subst ., , $(VERSION)) DESTDIR = prefix = /usr/local diff --git a/Makefile b/Makefile index 00cc065..6e4ab55 100644 --- a/Makefile +++ b/Makefile @@ -32,8 +32,7 @@ libopenlibm.$(SHLIB_EXT): $(OBJS) ifeq ($(OS),WINNT) $(CC) -shared $(OBJS) $(LDFLAGS) -Wl,$(SONAME_FLAG),libopenlibm.$(SHLIB_EXT) -o libopenlibm.$(SHLIB_EXT) else - $(CC) -shared $(OBJS) $(LDFLAGS) -Wl,$(SONAME_FLAG),libopenlibm.$(SHLIB_EXT).$(VERSION) -o libopenlibm.$(SHLIB_EXT).$(VERSION) - @-ln -sf libopenlibm.$(SHLIB_EXT).$(VERSION) libopenlibm.$(SHLIB_EXT).$(word 1,$(VERSION_SPLIT)).$(word 2,$(VERSION_SPLIT)) + $(CC) -shared $(OBJS) $(LDFLAGS) -Wl,$(SONAME_FLAG),libopenlibm.$(SHLIB_EXT).$(word 1,$(VERSION_SPLIT)) -o libopenlibm.$(SHLIB_EXT).$(VERSION) @-ln -sf libopenlibm.$(SHLIB_EXT).$(VERSION) libopenlibm.$(SHLIB_EXT).$(word 1,$(VERSION_SPLIT)) @-ln -sf libopenlibm.$(SHLIB_EXT).$(VERSION) libopenlibm.$(SHLIB_EXT) endif