mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-29 13:03:42 +01:00
Tweak SONAME handling
This commit is contained in:
parent
08f66bcea4
commit
b038823eaa
2 changed files with 2 additions and 3 deletions
2
Make.inc
2
Make.inc
|
@ -1,7 +1,7 @@
|
||||||
# -*- mode: makefile-gmake -*-
|
# -*- mode: makefile-gmake -*-
|
||||||
|
|
||||||
OS := $(shell uname)
|
OS := $(shell uname)
|
||||||
VERSION = 0.3.0
|
VERSION = 0.3
|
||||||
VERSION_SPLIT = $(subst ., , $(VERSION))
|
VERSION_SPLIT = $(subst ., , $(VERSION))
|
||||||
DESTDIR =
|
DESTDIR =
|
||||||
prefix = /usr/local
|
prefix = /usr/local
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -32,8 +32,7 @@ libopenlibm.$(SHLIB_EXT): $(OBJS)
|
||||||
ifeq ($(OS),WINNT)
|
ifeq ($(OS),WINNT)
|
||||||
$(CC) -shared $(OBJS) $(LDFLAGS) -Wl,$(SONAME_FLAG),libopenlibm.$(SHLIB_EXT) -o libopenlibm.$(SHLIB_EXT)
|
$(CC) -shared $(OBJS) $(LDFLAGS) -Wl,$(SONAME_FLAG),libopenlibm.$(SHLIB_EXT) -o libopenlibm.$(SHLIB_EXT)
|
||||||
else
|
else
|
||||||
$(CC) -shared $(OBJS) $(LDFLAGS) -Wl,$(SONAME_FLAG),libopenlibm.$(SHLIB_EXT).$(VERSION) -o libopenlibm.$(SHLIB_EXT).$(VERSION)
|
$(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)).$(word 2,$(VERSION_SPLIT))
|
|
||||||
@-ln -sf libopenlibm.$(SHLIB_EXT).$(VERSION) libopenlibm.$(SHLIB_EXT).$(word 1,$(VERSION_SPLIT))
|
@-ln -sf libopenlibm.$(SHLIB_EXT).$(VERSION) libopenlibm.$(SHLIB_EXT).$(word 1,$(VERSION_SPLIT))
|
||||||
@-ln -sf libopenlibm.$(SHLIB_EXT).$(VERSION) libopenlibm.$(SHLIB_EXT)
|
@-ln -sf libopenlibm.$(SHLIB_EXT).$(VERSION) libopenlibm.$(SHLIB_EXT)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue