Menu

#771 Tests with common symbols fail to link on MacOS X

None
closed-fixed
nobody
None
5
2022-02-02
2006-11-09
No

The tests:

enums
long_long

fail to link on MacOS X with the message:

ld: common symbols not allowed with MH_DYLIB output
format with the -multi_module option

hand linking them with option "-single_module"
resolves the problem.

I was not sure how to put this (only for MacOS X)
in the common.mk file of the test-suite.

To test in g++ if one is on MacOS X one could use the
predefined symbol __APPLE_CC__

Regards
Mark Donszelmann

Discussion

  • Olly Betts

    Olly Betts - 2022-02-02
    • status: open --> closed-fixed
    • Group: -->
     

Log in to post a comment.