From 3702300cbb027e413bfb0c1854c1e240ad810f34 Mon Sep 17 00:00:00 2001
From: Patrice Bensoussan <patrice.bensoussan@free.fr>
Date: Sat, 22 Oct 2005 19:10:14 +0000
Subject: [PATCH] Fix linking failure on Mac OS X <10.4. patch by Patrice
 Bensoussan patrice = dot = bensoussan = at = gmail = . = com

Originally committed as revision 4657 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 configure      | 2 +-
 vhook/Makefile | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index eb133f147d6..6fd3ae86186 100755
--- a/configure
+++ b/configure
@@ -330,7 +330,7 @@ v4l="no"
 audio_oss="no"
 dv1394="no"
 ffserver="no"
-SHFLAGS="-dynamiclib -Wl,-single_module,-undefined,dynamic_lookup"
+SHFLAGS="-dynamiclib -Wl,-single_module"
 extralibs=""
 darwin="yes"
 strip="strip -x"
diff --git a/vhook/Makefile b/vhook/Makefile
index c93ad3873dd..29415764466 100644
--- a/vhook/Makefile
+++ b/vhook/Makefile
@@ -5,7 +5,7 @@ VPATH=$(SRC_PATH)/vhook
 CFLAGS=-fPIC $(SHCFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavutil -DHAVE_AV_CONFIG_H
 
 ifeq ($(CONFIG_DARWIN),yes)
-	SHFLAGS += -flat_namespace
+	SHFLAGS += -flat_namespace -undefined suppress
 endif
 HOOKS=null$(SLIBSUF) fish$(SLIBSUF) ppm$(SLIBSUF) watermark$(SLIBSUF)
 
-- 
GitLab