Skip to content

Instantly share code, notes, and snippets.

@julienp
Created February 28, 2012 21:09
Show Gist options
  • Save julienp/1935167 to your computer and use it in GitHub Desktop.
Save julienp/1935167 to your computer and use it in GitHub Desktop.
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