aboutsummaryrefslogtreecommitdiff
path: root/lib/librt
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2011-02-23 21:17:38 +0000
committerDimitry Andric <dim@FreeBSD.org>2011-02-23 21:17:38 +0000
commitceed9a6cf9ad1427bb608d5b91d2f31342e7ca79 (patch)
treef7bed0a511e921c1f7280c602099d7b4d3b017fc /lib/librt
parentc0bc8d1008d72abe234fb3b10335c1f39ca8920f (diff)
downloadsrc-ceed9a6cf9ad1427bb608d5b91d2f31342e7ca79.tar.gz
src-ceed9a6cf9ad1427bb608d5b91d2f31342e7ca79.zip
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.
Notes
Notes: svn path=/head/; revision=218984
Diffstat (limited to 'lib/librt')
-rw-r--r--lib/librt/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librt/Makefile b/lib/librt/Makefile
index 86be751c7c3f..f624cf7b1d50 100644
--- a/lib/librt/Makefile
+++ b/lib/librt/Makefile
@@ -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