ubuntu@ubuntu$ ldd instance_service_main
linux-vdso.so.1 => (0x00007fff6a6fe000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f4afb88d000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f4afb685000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f4afb481000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f4afb0ff000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f4afadf6000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4afaa2c000)
/lib64/ld-linux-x86-64.so.2 (0x00007f4afbaaa000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f4afa816000)
Thanks :)
Please note that we are already passing the below mentioned arguments to the linker options in cc_binary but in vain. We need someway to suppress the -lstdc++ flag and link statically with libstdc++.a through bazel.
"-static-libgcc",
"-static-libstdc++",
"-Wl,-l:libgcc.a",
"-Wl,-l:libstdc++.a",
"-Wl,/usr/lib/gcc/x86_64-linux-gnu/5/libstdc++.a",
"-Wl,-l/usr/lib/gcc/x86_64-linux-gnu/5/libstdc++.a",
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/14ef4520-53f5-43f6-976e-067fd493cbba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "bazel-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bazel-discuss/WM2OzIejonc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/958cb068-b1e5-485b-a21b-3394c2cfb9b4%40googlegroups.com.