Fix parallel build race with DEBUG_FLAGS
Reported by: Jan Beich on freebsd-current Tested by: markj
This commit is contained in:
parent
1f0ed3c00e
commit
0d1fce25cb
@ -113,12 +113,20 @@ PO_FLAG=-pg
|
||||
|
||||
all: objwarn
|
||||
|
||||
.if defined(SHLIB_NAME)
|
||||
.if defined(DEBUG_FLAGS)
|
||||
SHLIB_NAME_FULL=${SHLIB_NAME}.debug
|
||||
.else
|
||||
SHLIB_NAME_FULL=${SHLIB_NAME}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.include <bsd.symver.mk>
|
||||
|
||||
# Allow libraries to specify their own version map or have it
|
||||
# automatically generated (see bsd.symver.mk above).
|
||||
.if ${MK_SYMVER} == "yes" && !empty(VERSION_MAP)
|
||||
${SHLIB_NAME}: ${VERSION_MAP}
|
||||
${SHLIB_NAME_FULL}: ${VERSION_MAP}
|
||||
LDFLAGS+= -Wl,--version-script=${VERSION_MAP}
|
||||
.endif
|
||||
|
||||
@ -165,12 +173,6 @@ SOBJS+= ${OBJS:.o=.So}
|
||||
.if defined(SHLIB_NAME)
|
||||
_LIBS+= ${SHLIB_NAME}
|
||||
|
||||
.if defined(DEBUG_FLAGS)
|
||||
SHLIB_NAME_FULL=${SHLIB_NAME}.debug
|
||||
.else
|
||||
SHLIB_NAME_FULL=${SHLIB_NAME}
|
||||
.endif
|
||||
|
||||
SOLINKOPTS= -shared -Wl,-x
|
||||
.if !defined(ALLOW_SHARED_TEXTREL)
|
||||
SOLINKOPTS+= -Wl,--fatal-warnings -Wl,--warn-shared-textrel
|
||||
|
Loading…
x
Reference in New Issue
Block a user