I'm trying to build executables (both programs and shared objects) on a relatively modern Linux distro (A
) and wanting to run those on a fairly old one (B
).
A
can build SYSV but sometimes it falls back to GNU/Linux, causing problems when running such executables on B
(B
refuses to run as such).
How can I force gcc/g++ (or the linker) to build SYSV only executables? If not possible a follow-up question would be what is triggering/forcing gcc/g++ to adopt GNU/Linux convention instead of SYSV (expanded on this question)? How can I prevent such linkage from happening?
Thanks