From e2ba0db760b551ded2650f06f921c1acb0156e6a Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Fri, 25 May 2012 10:28:40 +0200 Subject: [PATCH] debugutils: Fix static linking on OS X The linking behaviour of external variables that are not initialized in the compilation unit where they are defined is undefined. On OS X this causes a linking failure when statically linking GStreamer. --- gst/gst.c | 2 +- gst/gstdebugutils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/gst.c b/gst/gst.c index 4875b13f29..c95bb8592e 100644 --- a/gst/gst.c +++ b/gst/gst.c @@ -138,7 +138,7 @@ extern gboolean _priv_gst_disable_registry_update; #endif #ifndef GST_DISABLE_GST_DEBUG -extern const gchar *priv_gst_dump_dot_dir; +const gchar *priv_gst_dump_dot_dir; #endif /* defaults */ diff --git a/gst/gstdebugutils.c b/gst/gstdebugutils.c index be8230ef66..883ec99875 100644 --- a/gst/gstdebugutils.c +++ b/gst/gstdebugutils.c @@ -54,7 +54,7 @@ /*** PIPELINE GRAPHS **********************************************************/ -const gchar *priv_gst_dump_dot_dir; /* NULL *//* set from gst.c */ +extern const gchar *priv_gst_dump_dot_dir; /* NULL *//* set from gst.c */ const gchar spaces[] = { " " /* 32 */