whoops, forgot -Wl before -soname
This commit is contained in:
parent
2d636a5686
commit
a4d707b593
14
Makefile
14
Makefile
@ -18,7 +18,7 @@ cc = $(CC) $(cflags)
|
|||||||
# compatibility is broken, even if the API is backward-compatibile
|
# compatibility is broken, even if the API is backward-compatibile
|
||||||
MAJOR=1
|
MAJOR=1
|
||||||
MINOR=2
|
MINOR=2
|
||||||
RELEASE=0
|
PATCH=0
|
||||||
|
|
||||||
OS := $(shell uname)
|
OS := $(shell uname)
|
||||||
ifeq ($(OS),Darwin) # MacOS X
|
ifeq ($(OS),Darwin) # MacOS X
|
||||||
@ -26,7 +26,7 @@ ifeq ($(OS),Darwin) # MacOS X
|
|||||||
SHLIB_VERS_EXT = $(MAJOR).dylib
|
SHLIB_VERS_EXT = $(MAJOR).dylib
|
||||||
else # GNU/Linux, at least (Windows should probably use cmake)
|
else # GNU/Linux, at least (Windows should probably use cmake)
|
||||||
SHLIB_EXT = so
|
SHLIB_EXT = so
|
||||||
SHLIB_VERS_EXT = so.$(MAJOR).$(MINOR).$(REVISION)
|
SHLIB_VERS_EXT = so.$(MAJOR).$(MINOR).$(PATCH)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# installation directories (for 'make install')
|
# installation directories (for 'make install')
|
||||||
@ -74,15 +74,15 @@ libutf8proc.a: utf8proc.o
|
|||||||
rm -f libutf8proc.a
|
rm -f libutf8proc.a
|
||||||
$(AR) rs libutf8proc.a utf8proc.o
|
$(AR) rs libutf8proc.a utf8proc.o
|
||||||
|
|
||||||
libutf8proc.so.$(MAJOR).$(MINOR).$(REVISION): utf8proc.o
|
libutf8proc.so.$(MAJOR).$(MINOR).$(PATCH): utf8proc.o
|
||||||
$(cc) -shared -o $@ -soname libutf8proc.so.$(MAJOR) utf8proc.o
|
$(cc) -shared -o $@ -Wl,-soname -Wl,libutf8proc.so.$(MAJOR) utf8proc.o
|
||||||
chmod a-x $@
|
chmod a-x $@
|
||||||
|
|
||||||
libutf8proc.so: libutf8proc.so.$(MAJOR).$(MINOR).$(REVISION)
|
libutf8proc.so: libutf8proc.so.$(MAJOR).$(MINOR).$(PATCH)
|
||||||
ln -s libutf8proc.so.$(MAJOR).$(MINOR).$(REVISION) $@
|
ln -f -s libutf8proc.so.$(MAJOR).$(MINOR).$(PATCH) $@
|
||||||
|
|
||||||
libutf8proc.$(MAJOR).dylib: utf8proc.o
|
libutf8proc.$(MAJOR).dylib: utf8proc.o
|
||||||
$(cc) -dynamiclib -o $@ $^ -install_name $(libdir)/$@ -Wl,-compatibility_version -Wl,$(MAJOR) -Wl,-current_version -Wl,$(MAJOR).$(MINOR).$(REVISION)
|
$(cc) -dynamiclib -o $@ $^ -install_name $(libdir)/$@ -Wl,-compatibility_version -Wl,$(MAJOR) -Wl,-current_version -Wl,$(MAJOR).$(MINOR).$(PATCH)
|
||||||
|
|
||||||
libutf8proc.dylib: libutf8proc.$(MAJOR).dylib
|
libutf8proc.dylib: libutf8proc.$(MAJOR).dylib
|
||||||
ln -s libutf8proc.$(MAJOR).dylib $@
|
ln -s libutf8proc.$(MAJOR).dylib $@
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user