I’m trying to build an exec for profiling performances, and every object files have been compiled using option ‘-pg’.
Now, at the linker stage, I’m told:
c++ -O2 -g -pg -Wl,-pg *.o -o exec_name
/boot/system/develop/tools/bin/…/lib/gcc/x86_64-unknown-haiku/11.2.0/…/…/…/…/x86_64-unknown-haiku/bin/ld: unrecognized option ‘-pg’
/boot/system/develop/tools/bin/…/lib/gcc/x86_64-unknown-haiku/11.2.0/…/…/…/…/x86_64-unknown-haiku/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
(using binutils 2.31.1 on x86_64)
Has the profiling option been renamed perhaps?