https://sourceware.org/bugzilla/show_bug.cgi?id=32816
--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> --- Created attachment 16982 --> https://sourceware.org/bugzilla/attachment.cgi?id=16982&action=edit A different way to create libprofiler.so and libprofiler.a Please check if you can adapt to your Makefile.am: [hjl@gnu-tgl-3 pr32816]$ make gcc -B./ -O2 -g -c -o program.o program.c gcc -B./ -O2 -g -fPIC -c -o cpuprofiler-ref.o cpuprofiler-ref.c gcc -B./ -O2 -g -fPIC -c -o cpuprofiler.o cpuprofiler.c gcc -B./ -shared -o libprofiler-core.so cpuprofiler.o echo "GROUP (cpuprofiler-ref.o libprofiler-core.so)" > libprofiler.so gcc -B./ -Wl,--as-need,-R,. -o x program.o libprofiler.so ar -rv libprofiler-core.a cpuprofiler.o ar: creating libprofiler-core.a a - cpuprofiler.o echo "GROUP (cpuprofiler-ref.o libprofiler-core.a)" > libprofiler.a gcc -B./ -Wl,--as-need -o y program.o libprofiler.a CPUPROFILE=p ./x Starting with arg: p! main! CPUPROFILE=p ./y Starting with arg: p! main! [hjl@gnu-tgl-3 pr32816]$ -- You are receiving this mail because: You are on the CC list for the bug.
