diff --git a/gstafcsrc/CMakeLists.txt b/gstafcsrc/CMakeLists.txt index ea4f3f4b3..40e2bb9ab 100644 --- a/gstafcsrc/CMakeLists.txt +++ b/gstafcsrc/CMakeLists.txt @@ -15,7 +15,7 @@ set(SOURCES main.c ) -add_library(gstafcsrc SHARED +add_library(gstafcsrc STATIC ${SOURCES} ) diff --git a/gstafcsrc/main.c b/gstafcsrc/main.c index 84520310f..95a164d5e 100644 --- a/gstafcsrc/main.c +++ b/gstafcsrc/main.c @@ -25,7 +25,7 @@ static gboolean afcsrc_init(GstPlugin* afcsrc) { return gst_element_register(afcsrc, "afcsrc", GST_RANK_PRIMARY, GST_TYPE_AFCSRC); } -GST_PLUGIN_DEFINE( +GST_PLUGIN_DEFINE_STATIC( GST_VERSION_MAJOR, GST_VERSION_MINOR, "afcsrc", diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d925b8e0f..2c11abc36 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -601,6 +601,7 @@ if(HAVE_IMOBILEDEVICE) target_link_libraries(clementine_lib ${IMOBILEDEVICE_LIBRARIES} ${PLIST_LIBRARIES} + gstafcsrc ) endif(HAVE_IMOBILEDEVICE)