Linking to both and

When migrating from QNX 6.5.0 SP1 to QNX 6.6 (also migrating Qt from 4.8.4 to 5.3.2). We found that our application links to (the gnu standard library) but the Qt package links to (the Dinkum library).

We modified the configuration file for Qt5.3.2 package to include “-Y _gpp” to the qcc command therefore to link the Qt libraries against gnu standard C++ library. Which works, but we see uses which is qnx library and it links to (the dinkum library).

How to resolve this? (Since a given binary cannot link to both gnu standard C++ library and dinkum C++ library)