Merge pull request #184 from hoedown/soname
Use -install_name on Darwin
This commit is contained in:
commit
b234ae0a46
1 changed files with 6 additions and 1 deletions
7
Makefile
7
Makefile
|
@ -9,6 +9,11 @@ ifneq ($(OS),Windows_NT)
|
|||
HOEDOWN_CFLAGS += -fPIC
|
||||
endif
|
||||
|
||||
SONAME = -soname
|
||||
ifeq ($(shell uname -s),Darwin)
|
||||
SONAME = -install_name
|
||||
endif
|
||||
|
||||
HOEDOWN_SRC=\
|
||||
src/autolink.o \
|
||||
src/buffer.o \
|
||||
|
@ -30,7 +35,7 @@ libhoedown.so: libhoedown.so.3
|
|||
ln -f -s $^ $@
|
||||
|
||||
libhoedown.so.3: $(HOEDOWN_SRC)
|
||||
$(CC) -Wl,-soname,$(@F) -shared $^ $(LDFLAGS) -o $@
|
||||
$(CC) -Wl,$(SONAME),$(@F) -shared $^ $(LDFLAGS) -o $@
|
||||
|
||||
libhoedown.a: $(HOEDOWN_SRC)
|
||||
$(AR) rcs libhoedown.a $^
|
||||
|
|
Loading…
Reference in a new issue