New visibility handling in Clutter
Instead of listing every public symbol inside an ancillary file, we can use compiler annotations. This scheme is also used by GLib and GTK+. The symbols file is left in tree until the Visual Studio rules are fixed, but it's not used any more during distcheck. I double-checked that the exposed ABI is the same before and after this change, except for symbols that were never meant to be public in the first place, and that escaped our attention when we generated the first version of the symbols file.
This commit is contained in:
@@ -29,6 +29,7 @@ AM_CPPFLAGS = \
|
||||
$(CLUTTER_DEPRECATED_CFLAGS) \
|
||||
$(CLUTTER_DEBUG_CFLAGS) \
|
||||
$(CLUTTER_PROFILE_CFLAGS) \
|
||||
$(CLUTTER_HIDDEN_VISIBILITY_CFLAGS) \
|
||||
$(NULL)
|
||||
|
||||
AM_CFLAGS = $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS)
|
||||
@@ -850,7 +851,6 @@ libclutter_@CLUTTER_API_VERSION@_la_LDFLAGS = \
|
||||
$(CLUTTER_LINK_FLAGS) \
|
||||
$(CLUTTER_LT_LDFLAGS) \
|
||||
-export-dynamic \
|
||||
-export-symbols-regex "^(clutter|cally).*" \
|
||||
-rpath $(libdir) \
|
||||
$(win32_resources_ldflag) \
|
||||
$(NULL)
|
||||
|
Reference in New Issue
Block a user