Menu

#266 Typo in option check for -Wl,--export-dynamic

Performance problem
open
nobody
None
5
2025-09-14
2025-09-14
No

configure.ac:

####### Test for -export-dynamic option of ld
TEMP_LDFLAGS=$LDFLAGS
LDFLAGS="-Wl,-export-dynamic"
AC_MSG_CHECKING([whether loader understands -Wl,-export-dynamic])

This check is quite likely to succeed, but not the way you expect. It triggers this GNU binutils option:

       -e entry
       --entry=entry
           Use  entry as the explicit symbol for beginning execution of your program, rather than the default entry point.  If there is no symbol named entry, the linker will try to parse entry as a number, and
           use that as the entry address (the number will be interpreted in base 10; you may use a leading 0x for base 16, or a leading 0 for base 8).

... namely, it tries to use "xport-dynamic" as the entrypoint.

There's a separate --export-dynamic option with two dashes, not one.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB