Closed githubaf closed 2 years ago
Sometimes I want to build libnix with profiling, so I pass -pg to the command line .
CFLAGS_FOR_TARGET="-g -pg -Os" make libnix -j2 PREFIX=/home/developer/opt/m68k-amigaos_11May22
That fails however because "-fomit-frame-pointer" cannot be used together with "-pg"
I changed the makefile to remove a potentially provided "-pg" from the CFLAGS for the compilation of swapstack.
guess that won't work in MacOs... see the sed/gsed handling the amiga-gcc Makefile. maybe swapstack should simply be compile with fixed settings? -O2 -fomit-frame-pointer
-O2 -fomit-frame-pointer
Sometimes I want to build libnix with profiling, so I pass -pg to the command line .
CFLAGS_FOR_TARGET="-g -pg -Os" make libnix -j2 PREFIX=/home/developer/opt/m68k-amigaos_11May22
That fails however because "-fomit-frame-pointer" cannot be used together with "-pg"
I changed the makefile to remove a potentially provided "-pg" from the CFLAGS for the compilation of swapstack.