libunwind-examples icon indicating copy to clipboard operation
libunwind-examples copied to clipboard

Enhance Makefile

Open kasperk81 opened this issue 4 years ago • 0 comments

So we can call it with custom search paths:

make INCLUDE=$HOME/projects/libunwind/include LIB=$HOME/projects/libunwind/src/.libs

N.B.

  • march=native mtune=native is not needed and doesn't work for all ISAs
  • LDLIBS is the correct way to add library, otherwise with generic LDFLAGS binutils gets confused due to the ordering of -lunwind and complains about undefined references.

kasperk81 avatar Jun 27 '21 18:06 kasperk81