GNOME Bugzilla – Bug 735809
Only export symbols starting with 'e_' in libebook-contacts
Last modified: 2014-09-08 13:14:33 UTC
Hello, When compiling eds with libphonenumbers support, I've new exported symbols in the libebook-contacts-1.2-0 library: + _ZN4i18n12phonenumbers10NullLogger12WriteMessageERKSs@Base 3.12.5-2 + _ZN4i18n12phonenumbers10NullLoggerD0Ev@Base 3.12.5-2 + _ZN4i18n12phonenumbers10NullLoggerD1Ev@Base 3.12.5-2 + _ZN4i18n12phonenumbers10NullLoggerD2Ev@Base 3.12.5-2 + _ZN4i18n12phonenumbers6Logger10WriteLevelEv@Base 3.12.5-2 + _ZTIN4i18n12phonenumbers10NullLoggerE@Base 3.12.5-2 + _ZTIN4i18n12phonenumbers6LoggerE@Base 3.12.5-2 + _ZTSN4i18n12phonenumbers10NullLoggerE@Base 3.12.5-2 + _ZTSN4i18n12phonenumbers6LoggerE@Base 3.12.5-2 + _ZTVN4i18n12phonenumbers10NullLoggerE@Base 3.12.5-2 + _ZTVN4i18n12phonenumbers6LoggerE@Base 3.12.5-2 I guess these shouldn't be exported?
I guess -export-symbols-regex should be used to restrict the exported symbols?
Created attachment 285029 [details] [review] Only export symbols starting with 'e_' in libebook-contacts-1.2 Add -export-symbols-regex "^e_.*" the LDFLAGS of libebook-contacts-1.2 to avoid extra symbols to be exported when building with libphonenumber support
Review of attachment 285029 [details] [review]: Thanks for the patch, I'll just fix the typo in it and commit it. ::: addressbook/libebook-contacts/Makefile.am @@ +62,3 @@ libebook_contacts_1_2_la_LDFLAGS = \ -version-info $(LIBEBOOK_CONTACTS_CURRENT):$(LIBEBOOK_CONTACTS_REVISION):$(LIBEBOOK_CONTACTS_AGE) $(NO_UNDEFINED) \ + -export-symbols-regex "^e_.*" There is missing " \" at the end, to have the rest of the arguments included in LDFLAGS
Created commit 030e72c in eds master (3.13.6+) [1] [1] https://git.gnome.org/browse/evolution-data-server/commit/?id=030e72c