About: 187000 results

Using LD, the GNU linker - Options - ftp
https://ftp.gnu.org/old-gnu/Manuals/ld-2.9.1/html_ ...
This feature permits the linker to link against a file which appears to be an object or an archive, but actually merely defines some symbol values, or uses INPUT or GROUP to load other objects. ... --no-whole-archive: Turn off the effect of the -- whole-archive option for subsequent archive files. ... This can be useful when using gcc, which adds many -L options which may be on NFS mounted filesystems.
Using LD, the GNU linker - Index - ftp
https://ftp.gnu.org/old-gnu/Manuals/ld-2.9.1/html_ ...
g. GNU linker · GNUTARGET, GNUTARGET · GROUP ( files ) · grouping input files · groups of archives ... i960 support · INCLUDE filename · including a linker script · including an entire archive · incremental link · INPUT ( files ) · input file format ...
ld linker question: the --whole-archive option - Stack Overflow
https://stackoverflow.com/questions/805555/ld-link ...
There are legitimate uses of --whole-archive when linking executable with static libraries. One example is building C++ code, where global instances "register" themselves in their constructors (warning: untested code):.
GCC: --whole-archive and --no-whole-archive options - Stack Overflow
https://stackoverflow.com/questions/30438812/gcc-w ...
try: gcc -shared -o libmain.so main.o -Wl,--whole-archive gdiplus sqlite3 -Wl,--no- whole-archive.
what's difference between --start-group and --whole-archive in ld ...
https://stackoverflow.com/questions/52435705/whats ...
A linker will normally support an option (GNU ld: --whole-archive, MS link: / WHOLEARCHIVE) to override the default processing of static libraries and ... gcc -o prog -Wl,--whole-archive libxy.a -Wl,--no-whole-archive main.o $ .
How to include all objects of an archive in a shared object ...
https://stackoverflow.com/questions/2763988/how-to ...
This is normally used to turn an archive file into a shared library, forcing every object to be included in the resulting shared library. This option may be used more than once. (gcc -Wl,--whole-archive). Plus, you should put -Wl,--no-whole- archive ...
GCC: --whole-archive recipe for static linking to pthread stopped ...
https://stackoverflow.com/questions/58848694/gcc-w ...
New workaround: -Wl,--whole-archive -lrt -lpthread -Wl,--no-whole-archive. As pointed out by Federico, adding -lrt prevents the crash. The whole issue is almost certainly related to librt, which is the Realtime Extensions library.
What is the Microsoft Visual Studio equivalent to GCC ld option ...
https://stackoverflow.com/questions/3867254/what-i ...
To my knowledge, there is no single option which reliably guarantees that. There are combinations of optimizing options which (silently) deactivate this, so no way. .. /INCLUDE works, but for that you need to extract and ...
ld(1): GNU linker - Linux man page
https://linux.die.net/man/1/ld
ld combines a number of object and archive files, relocates their data and ties up symbol references. ... Second, don't forget to use -Wl,-no-whole-archive after your list of archives, because gcc will add its own list of archives to your link and you ...
Whole-archive linking option and Clang equivalent? · Issue #1170 ...
https://github.com/premake/premake-core/issues/117 ...
Sep 17, 2018 ... If I could instead compile these common files to a static lib and link that, it would work fantastically, but unfortunately both clang and gcc remove several symbols from the static lib project. Using the whole-archive and ...