bebbo / libnix

libnix (v4): a C link library for AmigaOS/m68k
14 stars 9 forks source link

allow libnix to be build with -pg #51

Closed githubaf closed 2 years ago

githubaf commented 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.

bebbo commented 2 years ago

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