Handle libs that create linker scripts as libs

Eg ncurses creates libncursesw.ald
This is the only example so far, but if we are staging
handle it.

Reviewed by:	stevek
This commit is contained in:
Simon J. Gerraty 2023-04-18 20:22:13 -07:00
parent cb05ce69c2
commit 5ef0969e62

View File

@ -437,6 +437,14 @@ STAGE_AS_${SHLIB_LINK:R}.ld:= ${SHLIB_LINK}
NO_SHLIB_LINKS=
.endif
.if defined(STATIC_LDSCRIPT) && target(lib${LIB}.ald)
STAGE_AS_SETS+= ald
STAGE_DIR.ald = ${STAGE_LIBDIR}
STAGE_AS.ald+= lib${LIB}.ald
STAGE_AS_lib${LIB}.ald = lib${LIB}.a
stage_as.ald: lib${LIB}.ald
.endif
.if target(stage_files.shlib)
stage_libs: ${_LIBS}
.if defined(DEBUG_FLAGS) && target(${SHLIB_NAME}.symbols)