Created
February 28, 2012 21:09
-
-
Save julienp/1935167 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Makefile b/src/Makefile | |
index 3e6f704..4d78605 100644 | |
--- a/src/Makefile | |
+++ b/src/Makefile | |
@@ -97,8 +97,7 @@ lib_shared_info_post: | |
@echo "#############################################" | |
lib_shared: lib_shared_info_pre $(LOBJS) lib_shared_info_post | |
- $(CC) -shared -Wl,-soname,$(LIBNAME_MAJOR) $(LOBJS) \ | |
- $(LDFLAGS) $(EXTRALIBS) -o $(LIBNAME_VERSION) | |
+ $(CC) -dynamiclib -install_name $(PREFIX)/lib/$(LIBNAME_SHARED) $(LOBJS) $(LDFLAGS) $(EXTRALIBS) -o $(LIBNAME_VERSION) -compatibility_version $(VERSION) -current_version $(VERSION) | |
$(LN) -sf $(LIBNAME_VERSION) $(LIBNAME_MAJOR) | |
$(LN) -sf $(LIBNAME_MAJOR) $(LIBNAME_SHARED) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment