Skip to content

Instantly share code, notes, and snippets.

@2bits
Created September 28, 2011 20:36
Show Gist options
  • Save 2bits/1249187 to your computer and use it in GitHub Desktop.
Save 2bits/1249187 to your computer and use it in GitHub Desktop.
flac-1.2.1/build/lib.mk patch for Mac OS ld to mark undefined symbols for dynamic_lookup, from Macports and/or Fink
--- build/lib.mk.orig 2007-09-13 10:51:25.000000000 +1000
+++ build/lib.mk 2009-02-10 08:27:43.000000000 +1100
@@ -51,7 +51,7 @@
RELEASE_STATIC_LIB = $(RELEASE_LIBPATH)/$(STATIC_LIB_NAME)
RELEASE_DYNAMIC_LIB = $(RELEASE_LIBPATH)/$(DYNAMIC_LIB_NAME)
ifeq ($(DARWIN_BUILD),yes)
-LINKD = $(CC) -dynamiclib -flat_namespace -undefined suppress -install_name $(DYNAMIC_LIB)
+LINKD = $(CC) -dynamiclib -undefined dynamic_lookup -install_name $(DYNAMIC_LIB)
else
LINKD = $(CC) -shared
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment