gcc: Solaris 2 Options
1
1 3.18.45 Solaris 2 Options
1 -------------------------
1
1 These '-m' options are supported on Solaris 2:
1
1 '-mclear-hwcap'
1 '-mclear-hwcap' tells the compiler to remove the hardware
1 capabilities generated by the Solaris assembler. This is only
1 necessary when object files use ISA extensions not supported by the
1 current machine, but check at runtime whether or not to use them.
1
1 '-mimpure-text'
1 '-mimpure-text', used in addition to '-shared', tells the compiler
1 to not pass '-z text' to the linker when linking a shared object.
1 Using this option, you can link position-dependent code into a
1 shared object.
1
1 '-mimpure-text' suppresses the "relocations remain against
1 allocatable but non-writable sections" linker error message.
1 However, the necessary relocations trigger copy-on-write, and the
1 shared object is not actually shared across processes. Instead of
1 using '-mimpure-text', you should compile all source code with
1 '-fpic' or '-fPIC'.
1
1 These switches are supported in addition to the above on Solaris 2:
1
1 '-pthreads'
1 This is a synonym for '-pthread'.
1