Link all thorn source files

Issue #1147 closed
Erik Schnetter created an issue

The attached patch adds configuration options allowing people to ensure that all thorn source files make it into the executable. Among other things, this ensures that each routine has a unique name.

For example, on systems using GNU ld, these options enable this behaviour:

BEGIN_WHOLE_ARCHIVE = -Wl,--whole-archive
END_WHOLE_ARCHIVE   = -Wl,--no-whole-archive

Keyword:

Comments (7)

  1. Frank Löffler
    • removed comment

    The patch looks fine, but Roland suggested to use a bit different naming for the options and I agree:

    BEGIN_WHOLE_ARCHIVE_FLAGS END_WHOLE_ARCHIVE_FLAGS

    With this, please apply.

  2. Frank Löffler
    • removed comment

    Please also mention the flags and one or two examples in doc/UsersGuide/Notes.tex in the section for these options.

  3. Log in to comment