Fix the 32-bit build stage on amd64 when WITH_CTF is enabled. It seems

ctfconvert will corrupt object files that are compiled with -g, if it is
not run with -g itself.

To fix it, remove -g from CFLAGS in lib/librt/Makefile.  If you need to
compile this library with debug info, use DEBUG_FLAGS=-g instead, which
will work correctly, even when using WITH_CTF.
This commit is contained in:
Dimitry Andric 2011-02-23 21:17:38 +00:00
parent c0bc8d1008
commit ceed9a6cf9

View File

@ -6,7 +6,7 @@ CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}
.ifndef NO_THREAD_STACK_UNWIND
CFLAGS+=-fexceptions
.endif
CFLAGS+=-Winline -Wall -g
CFLAGS+=-Winline -Wall
DPADD= ${LIBPTHREAD}
LDADD= -lpthread