1

I am currently porting my compiler from AIX XLC compiler to GCC compiler on AIX.

I want to know if there is an GCC equivalent compiler option available for the '-qnotwolinkis'(XLC).

Nujufas
  • 676
  • 1
  • 9
  • 19
  • 1
    In [IBM XL C/C++ for AIX](https://ibm.co/2NgKBcT), the default is `-qnotwolink`, which will link all static constructors defined anywhere in the object (.o) and library (.a) files. I believe this is the default for GCC on AIX too. With XL, you can optionally supply `-qtwolink` so that the static constructors defined in the object files are invoked, but not the ones in the library files. Are you looking for a GCC equivalent for `-qtwolink`? Also, if you are moving off of XL due to lack of language standard support, IBM just released [V16.1](https://ibm.co/2NfJ9Yh) with full support for C++14. – Nicole Trudeau Feb 20 '19 at 00:03

0 Answers0