Merge r267837 from ^/projects/release-debugdist:

When building world when WITH_DEBUG_FILES is set,
  avoid building ar(1) archives with '-g'.

Tested on:	head@r267801
Reviewed by:	emaste, imp
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Glen Barber 2014-07-01 18:26:30 +00:00
parent 30a13db0c5
commit 71b259d4f1

View File

@ -45,7 +45,8 @@ STRIP?= -s
.if ${MK_DEBUG_FILES} != "no" && empty(DEBUG_FLAGS:M-g) && \
empty(DEBUG_FLAGS:M-gdwarf*)
CFLAGS+= -g
SHARED_CFLAGS+= -g
SHARED_CXXFLAGS+= -g
CTFFLAGS+= -g
.endif