mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
bsd.lib.mk: only ctfmerge if objfiles have a CTF section
PR: 299013
Reported by: [email protected]
Reviewed by: emaste
Fixes: 222210c6a8 ("libgcc_s: add libgcc_s_asneeded.so wrapper for gcc 16")
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D60252
This commit is contained in:
1 parent
68386f6b55
commit
fdd3f6f788
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -291,7 +291,7 @@ ${SHLIB_NAME_FULL}: ${SOBJS}
|
||||
.endif
|
||||
${_LD:N${CCACHE_BIN}} ${LDFLAGS} ${SSP_CFLAGS} ${SOLINKOPTS} \
|
||||
-o ${.TARGET} -Wl,-soname,${SONAME} ${SOBJS} ${LDADD}
|
||||
.if ${MK_CTF} != "no"
|
||||
.if ${MK_CTF} != "no" && defined(SOBJS) && !empty(SOBJS)
|
||||
${CTFMERGE} ${CTFFLAGS} -o ${.TARGET} ${SOBJS}
|
||||
.endif
|
||||
|
||||
|
||||
+1
-1
@@ -165,7 +165,7 @@ CPP ?= cpp
|
||||
CTFFLAGS ?= -L VERSION
|
||||
|
||||
CTFCONVERT ?= ctfconvert
|
||||
CTFMERGE ?= ctfmerge
|
||||
CTFMERGE ?= ctfmerge -t
|
||||
|
||||
.if defined(CFLAGS) && (${CFLAGS:M-g} != "")
|
||||
CTFFLAGS += -g
|
||||
|
||||
Reference in new issue
Block a user