--add-needed Set DT_NEEDED tags for DT_NEEDED entries in following dynamic libs --no-add-needed Do not set DT_NEEDED tags for DT_NEEDED entries in following dynamic libs --as-needed Only set DT_NEEDED for following dynamic libs if used --no-as-needed Always set DT_NEEDED for following...
猜测是gcc的版本问题,用-v跟踪一下,发现gcc-4.6默认开 启了ld的–as-needed选项。关闭该选项(–no-as-needed)后编译正常。深 入挖掘发现还是一个比较有意思的问题。 2 几个名词 gcc: 后面不特殊说明gcc代表gcc/g++。 主程序块: 只包含main的binary,可执行程序。 3 技术铺垫 3.1 编译动态库时的符号解析 有...
猜测是gcc的版本问题,用-v跟踪一下,发现gcc-4.6默认开 启了ld的–as-needed选项。关闭该选项(–no-as-needed)后编译正常。深 入挖掘发现还是一个比较有意思的问题。 1.2 几个名词 gcc: 后面不特殊说明gcc代表gcc/g++。 主程序块: 只包含main的binary,可执行程序。 1.3 技术铺垫 1.3.1 编译动态库时的符号...
-L/usr/lib/gcc/i486-slackware-linux/4.1.2 -L/usr/i486-slackware-linux/lib -L/usr/lib/ -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed / /usr/lib/gcc/i486-slackware-linux/4.1.2/crtend.o /usr/lib/crtn.o...
+ CmdArgs.push_back("--no-as-needed");+ } else + CmdArgs.push_back("-lgcc");} else { if (!D.CCCIsCXX())CmdArgs.push_back("--as-needed");- CmdArgs.push_back("-lgcc_s");+ if (Args.hasArg(options::OPT_fnolibgcc))+ CmdArgs.push_back("-lunw...
{mmusl:/lib/ld-musl-x32.so.1;:/libx32/ld-linux-x32.so.2}}} %{static:-static} %{static-pie:-static -pie --no-dynamic-linker -z text}};:%{m16|m32|mx32:;:-m elf_x86_64} %{m16|m32:-m elf_i386} %{mx32:-m elf32_x86_64} --hash-style=gnu --as-needed %{shared:-sh...
eci-user@eci-intel-da18:~/lc/ecat-test$ make gcc -Wall -O3 -g -D_GNU_SOURCE -D_REENTRANT -fasynchronous-unwind-tables -o main.o -c main.c gcc -o test lcec.o main.o -lm -lrt -lpthread -lethercat -Wl,--no-as-needed -L/usr/lib /usr/bin/...
gcc-4.8.2 Last change: 2013-10-16 34 GNU GCC(1) -fnothrow-opt Treat a "throw()" exception specification as if it were a "noexcept" specification to reduce or eliminate the text size overhead relative to a function with no exception specification. If the function has local variables of...
no checking for compiler option needed when checking for declarations... none checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e....
checking for lex... no checking for flex... no checking for makeinfo... no /opt/tmp/gcc-9.2.0/missing: line 81: makeinfo: command not found checking for expect... no checking for runtest... no checking for ar... ar checking for as... as ...