Altera_Forum
Honored Contributor
21 years agoA bug in libm.a?
All,
Today, when I build my application without any debugging information, everything is OK. But when I am going to link the .gdb file for debugging, the problem shows up. I got an "undefined error" when linking the .bin file into .gdb file. After checking the problem, I found in the Rules.mak file, it still uses the lib provided by newlib not uclibc, while we are using the libc.a from uclibc. After changing the LIBM to libm.a provided from uclibc, the problem is solved. Is it a bug? <div class='quotetop'>QUOTE </div> --- Quote Start --- ######################################################## # I use the libm.a provided by uclibc instead of# newlib.# # ###################################################### LIBM := $(LIBCDIR)/lib/libm.a# LIBM := $(shell $(CC) -print-file-name=libm.a)[/b] --- Quote End ---