I just tried this by adding
libfoo_la_LDFLAGS += -export-symbols symfile
and manually creating an empty file named symfile in the
example I posted earlier. Now the only symbol that gets
exported is the one decorated with dllexport. Thanks
for the workaround.
One more snag
Den 2009-08-28 19:02 skrev David Byron:
Indeed, good to know. Your input made me realize that it
should be possible to work around the extra exports with
something like -export-symbols-regex=probably_not_a_match
or with an empty SYMFILE and -export-symbols=SYMFILE
Untested though, but the
Indeed, good to know. Your input made me realize that it
should be possible to work around the extra exports with
something like -export-symbols-regex=probably_not_a_match
or with an empty SYMFILE and -export-symbols=SYMFILE
Untested though, but the linker should then pick up the
symbols
Den 2009-08-24 23:53 skrev David Byron:
I'm running into a situation where libtool is exporting something I don't
expect it to. I've attached a tarball that demonstrates this.
This is by design. For the msvc branch, libtool digs through the object
files to get all public symbols and exports