mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
Remove regexp-based export control
This commit is contained in:
parent
d89fb7bf10
commit
304950a7ac
10
configure.ac
10
configure.ac
@ -210,16 +210,6 @@ AS_IF([test "$glib_native_win32" = "yes"], [
|
|||||||
])
|
])
|
||||||
AM_CONDITIONAL(MS_LIB_AVAILABLE, [test x$ms_librarian = xyes])
|
AM_CONDITIONAL(MS_LIB_AVAILABLE, [test x$ms_librarian = xyes])
|
||||||
|
|
||||||
if test "$glib_native_win32" != yes; then
|
|
||||||
# libtool option to control which symbols are exported
|
|
||||||
# right now, symbols starting with _ are not exported
|
|
||||||
LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^g.*"'
|
|
||||||
else
|
|
||||||
# We currently use .def files on Windows
|
|
||||||
LIBTOOL_EXPORT_OPTIONS=
|
|
||||||
fi
|
|
||||||
AC_SUBST(LIBTOOL_EXPORT_OPTIONS)
|
|
||||||
|
|
||||||
AS_IF([test "x$glib_have_carbon" = "xyes"], [
|
AS_IF([test "x$glib_have_carbon" = "xyes"], [
|
||||||
AC_DEFINE(HAVE_CARBON, 1, [define to 1 if Carbon is available])
|
AC_DEFINE(HAVE_CARBON, 1, [define to 1 if Carbon is available])
|
||||||
LDFLAGS="$LDFLAGS -Wl,-framework,Carbon"
|
LDFLAGS="$LDFLAGS -Wl,-framework,Carbon"
|
||||||
|
@ -492,8 +492,6 @@ endif
|
|||||||
if OS_WIN32_AND_DLL_COMPILATION
|
if OS_WIN32_AND_DLL_COMPILATION
|
||||||
gio_win32_res = gio-win32-res.o
|
gio_win32_res = gio-win32-res.o
|
||||||
gio_win32_res_ldflag = -Wl,$(gio_win32_res)
|
gio_win32_res_ldflag = -Wl,$(gio_win32_res)
|
||||||
else
|
|
||||||
export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
install-data-local: install-ms-lib
|
install-data-local: install-ms-lib
|
||||||
@ -505,7 +503,7 @@ libgio_2_0_la_CFLAGS = $(AM_CFLAGS) $(GLIB_HIDDEN_VISIBILITY_CFLAGS)
|
|||||||
libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
|
libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
|
||||||
$(gio_win32_res_ldflag) \
|
$(gio_win32_res_ldflag) \
|
||||||
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
|
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
|
||||||
-export-dynamic $(no_undefined) $(export_symbols)
|
-export-dynamic $(no_undefined)
|
||||||
|
|
||||||
if OS_COCOA
|
if OS_COCOA
|
||||||
# This is dumb. The ObjC source file should be properly named .m
|
# This is dumb. The ObjC source file should be properly named .m
|
||||||
|
@ -348,8 +348,6 @@ endif
|
|||||||
if OS_WIN32_AND_DLL_COMPILATION
|
if OS_WIN32_AND_DLL_COMPILATION
|
||||||
glib_win32_res = glib-win32-res.o
|
glib_win32_res = glib-win32-res.o
|
||||||
glib_win32_res_ldflag = -Wl,$(glib_win32_res)
|
glib_win32_res_ldflag = -Wl,$(glib_win32_res)
|
||||||
else
|
|
||||||
export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if USE_SYSTEM_PCRE
|
if USE_SYSTEM_PCRE
|
||||||
@ -367,7 +365,7 @@ libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAW
|
|||||||
libglib_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
|
libglib_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
|
||||||
$(glib_win32_res_ldflag) \
|
$(glib_win32_res_ldflag) \
|
||||||
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
|
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
|
||||||
-export-dynamic $(no_undefined) $(export_symbols)
|
-export-dynamic $(no_undefined)
|
||||||
|
|
||||||
INSTALL_PROGS=
|
INSTALL_PROGS=
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ libgmodule_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
|
|||||||
$(gmodule_win32_res_ldflag) \
|
$(gmodule_win32_res_ldflag) \
|
||||||
$(G_MODULE_LDFLAGS) \
|
$(G_MODULE_LDFLAGS) \
|
||||||
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
|
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
|
||||||
-export-dynamic $(no_undefined) $(export_symbols)
|
-export-dynamic $(no_undefined)
|
||||||
|
|
||||||
libgmodule_2_0_la_LIBADD = $(G_MODULE_LIBS_EXTRA) $(G_MODULE_LIBS) $(libglib)
|
libgmodule_2_0_la_LIBADD = $(G_MODULE_LIBS_EXTRA) $(G_MODULE_LIBS) $(libglib)
|
||||||
|
|
||||||
|
@ -51,16 +51,13 @@ endif
|
|||||||
if OS_WIN32_AND_DLL_COMPILATION
|
if OS_WIN32_AND_DLL_COMPILATION
|
||||||
gobject_win32_res = gobject-win32-res.o
|
gobject_win32_res = gobject-win32-res.o
|
||||||
gobject_win32_res_ldflag = -Wl,$(gobject_win32_res)
|
gobject_win32_res_ldflag = -Wl,$(gobject_win32_res)
|
||||||
else
|
|
||||||
export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# libtool stuff: set version and export symbols for resolving
|
|
||||||
libgobjectincludedir = $(includedir)/glib-2.0/gobject
|
libgobjectincludedir = $(includedir)/glib-2.0/gobject
|
||||||
libgobject_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
|
libgobject_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
|
||||||
$(gobject_win32_res_ldflag) \
|
$(gobject_win32_res_ldflag) \
|
||||||
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
|
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
|
||||||
-export-dynamic $(no_undefined) $(export_symbols)
|
-export-dynamic $(no_undefined)
|
||||||
|
|
||||||
libgobject_2_0_la_CFLAGS = $(AM_CFLAGS) $(LIBFFI_CFLAGS) $(GLIB_HIDDEN_VISIBILITY_CFLAGS)
|
libgobject_2_0_la_CFLAGS = $(AM_CFLAGS) $(LIBFFI_CFLAGS) $(GLIB_HIDDEN_VISIBILITY_CFLAGS)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user