aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/randomtest25
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/randomtest b/scripts/randomtest
index 94709a99f..76550d267 100755
--- a/scripts/randomtest
+++ b/scripts/randomtest
@@ -113,6 +113,31 @@ if test x"$LIBC" = x"uclibc"; then
113 echo 'CONFIG_ASH_INTERNAL_GLOB=y' >>.config 113 echo 'CONFIG_ASH_INTERNAL_GLOB=y' >>.config
114fi 114fi
115 115
116# If musl
117if test x"$LIBC" = x"musl"; then
118 cat .config \
119 | grep -v CONFIG_STATIC \
120 | grep -v CONFIG_DEBUG_SANITIZE \
121 | grep -v CONFIG_LFS \
122 | grep -v CONFIG_EXTRA_COMPAT \
123 | grep -v CONFIG_FEATURE_2_4_MODULES \
124 | grep -v CONFIG_FEATURE_VI_REGEX_SEARCH \
125 | grep -v CONFIG_FEATURE_MOUNT_NFS \
126 | grep -v CONFIG_FEATURE_INETD_RPC \
127 >.config.new
128 mv .config.new .config
129 echo 'CONFIG_STATIC=y' >>.config
130 # "error: cannot specify -static with -fsanitize=address":
131 echo '# CONFIG_DEBUG_SANITIZE is not set' >>.config
132 # with LFS off, uoff_t will have wrong width:
133 echo 'CONFIG_LFS=y' >>.config
134 echo '# CONFIG_EXTRA_COMPAT is not set' >>.config
135 echo '# CONFIG_FEATURE_2_4_MODULES is not set' >>.config
136 echo '# CONFIG_FEATURE_VI_REGEX_SEARCH is not set' >>.config
137 echo '# CONFIG_FEATURE_MOUNT_NFS is not set' >>.config
138 echo '# CONFIG_FEATURE_INETD_RPC is not set' >>.config
139fi
140
116# If STATIC, remove some things. 141# If STATIC, remove some things.
117# PAM with static linking is probably pointless 142# PAM with static linking is probably pointless
118# (but I need to try - now I don't have libpam.a on my system, only libpam.so) 143# (but I need to try - now I don't have libpam.a on my system, only libpam.so)