gcc ld - yszheda/wiki GitHub Wiki
- How can I force linking with a static library when a shared library of same name is present
- How do you link to a specific version of a shared library in GCC
- https://stackoverflow.com/questions/8843818/what-does-the-fpermissive-flag-do
- https://stackoverflow.com/questions/10932479/in-gcc-how-to-mute-the-fpermissive-warning
- https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
- Is floating point expression contraction allowed in C++?
- Difference in gcc -ffp-contract options
- https://github.com/facebook/hhvm/issues/7594
- Compilation fails with “relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object”
- getting error “recompile with -fPIC”
- how to recompile with -fPIC
gcc -march=native -Q --help=target ...
gcc -march=native -E -v - </dev/null 2>&1 | grep cc1
gcc -march=native -Q --help=target | grep march
- What is the 'soname' option for building shared libraries for?
- How does linker find shared library without SONAME
(in this case libm is considered before the object files and discarded independently from the content of the two.)
$ gcc -Wl,--as-needed -lm someunit1.o someunit2.o -o program
(this is the correct linking order to get libm linked only if needed.)
$ gcc -Wl,--as-needed someunit1.o someunit2.o -lm -o program
-
Why ––as–needed doesn’t work as expected for your libraries on your autotools project
-
https://www.wireshark.org/lists/wireshark-dev/201601/msg00122.html
-
https://stackoverflow.com/questions/11055569/linking-with-dynamic-library-with-dependencies
-
--allow-shlib-undefined
: linker --as-needed flag not pruning libraries -
Why am I getting a gcc “undefined reference” error trying to create shared objects?
-
Relationship between –as-needed and –no-undefined – Part 1: what do they do?
IMPORTANT!
- https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
- g++ compiling C++11 using -Wpedantic option: Is there an option to disable only the warning about unnamed structs?
- https://renenyffenegger.ch/notes/development/languages/C-C-plus-plus/GCC/options/save-temps/index
- gcc with parameters "-S -save-temps" puts intermediate files in current directory
- https://bugs.gentoo.org/234710
- https://github.com/dealii/dealii/issues/1889
- https://github.com/awslabs/pidgin-chime/issues/23
- UNDEFINED REFERENCE TO “FUNCTION NAME”
- https://sft.its.cern.ch/jira/browse/ROOT-3934