build(profile): select sources per level via AM_CONDITIONAL
Gate the initial string slice per compatibility level: L1 sources compile everywhere, strlcpy/strlcat only at level >= 2 (PROFILE_GE_2), strcasestr only at level >= 3 (PROFILE_GE_3). Install the generated include/vlibc/features.h under $(vlibc_includedir)/vlibc/ via a dedicated vlibc_featuresdir primary (nodist_nobase is rejected by automake and loses the vlibc/ subpath). Include stddef.h/string.h in vlibc_include_HEADERS. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <[email protected]>
This commit is contained in:
@@ -118,6 +118,9 @@ AS_CASE([$vlibc_profile],
|
||||
AC_SUBST([vlibc_profile])
|
||||
AC_SUBST([vlibc_level])
|
||||
|
||||
AM_CONDITIONAL([PROFILE_GE_2], [test "$vlibc_level" -ge 2])
|
||||
AM_CONDITIONAL([PROFILE_GE_3], [test "$vlibc_level" -ge 3])
|
||||
|
||||
# ---- Install method ------------------------------------------------------
|
||||
# "alongside" installs vlibc next to the system libc: headers and libraries go
|
||||
# under a vlibc-specific tree, used via the vlibc-gcc / vlibc-clang drivers.
|
||||
|
||||
Reference in New Issue
Block a user