diff --git a/configure b/configure
index eb133f147d60c9a255c240df328a1f1b167d9908..6fd3ae86186b06a3ee15d9735870ec7755d47d2d 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 c93ad3873ddf680201aa25323c16b5d8aa2c8b78..29415764466d6a80a25df3c8b4620905e343be11 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)