Skip to content

Instantly share code, notes, and snippets.

@taybin
Created July 3, 2010 19:56
Show Gist options
  • Save taybin/462794 to your computer and use it in GitHub Desktop.
Save taybin/462794 to your computer and use it in GitHub Desktop.
fix building vamp-plugin-sdk on osx
diff --git a/Makefile.in b/Makefile.in
index 5acc5f0..3605557 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -104,8 +104,8 @@ PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS) -Wl,--version-script=build/vamp-plugin.map
## For OS/X with g++:
DYNAMIC_LDFLAGS = -dynamiclib
PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS)
-SDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS)
-HOSTSDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS)
+SDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS) -Wl,-dylib_install_name,$(INSTALL_SDK_LIBS)/$(INSTALL_SDK_LINK_ABI)
+HOSTSDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS) -Wl,-dylib_install_name,$(INSTALL_SDK_LIBS)/$(INSTALL_HOSTSDK_LINK_ABI)
### End of user-serviceable parts
diff --git a/Makefile.in b/Makefile.in
index 0f218f5..5acc5f0 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -102,10 +102,10 @@ PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS) -Wl,--version-script=build/vamp-plugin.map
## For OS/X with g++:
-#DYNAMIC_LDFLAGS = -dynamiclib
-#PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS)
-#SDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS)
-#HOSTSDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS)
+DYNAMIC_LDFLAGS = -dynamiclib
+PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS)
+SDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS)
+HOSTSDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS)
### End of user-serviceable parts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment