@@ -2179,25 +2179,47 @@ libgcc.mvars: config.status Makefile specs xgcc$(exeext)
2179
2179
2180
2180
mv tmp-libgcc.mvars libgcc.mvars
2181
2181
2182
+ ifeq (@enable_multilib_space@,yes)
2183
+ MULTILIB_OPTIONS += Os
2184
+ MULTILIB_DIRNAMES += space
2185
+ MULTILIB_MATCHES += Os=Oz
2186
+
2187
+ MULTILIB_OSDIRNAMES_SPACE = $(MULTILIB_OSDIRNAMES ) \
2188
+ $(if $(findstring =,$(MULTILIB_OSDIRNAMES ) ) ,\
2189
+ $(foreach OSD,$(MULTILIB_OSDIRNAMES ) ,$(subst =,/Os=,$(OSD ) ) /space) ,\
2190
+ $(if $(MULTILIB_OSDIRNAMES ) ,space,) )
2191
+ MULTILIB_REQUIRED_SPACE = $(if $(MULTILIB_REQUIRED ) ,Os $(foreach REQ, $(MULTILIB_REQUIRED ) , $(REQ ) $(REQ ) /Os) ,)
2192
+ MULTILIB_EXCEPTIONS_SPACE = $(foreach EXC, $(MULTILIB_EXCEPTIONS ) , $(EXC ) $(EXC ) /Os)
2193
+ MULTILIB_REUSE_SPACE = $(foreach REU, $(MULTILIB_REUSE ) , $(REU ) $(subst =,/Os=,$(REU ) ) /Os)
2194
+ MULTILIB_ENABLE = yes
2195
+ else
2196
+ MULTILIB_OSDIRNAMES_SPACE = $(MULTILIB_OSDIRNAMES )
2197
+ MULTILIB_REQUIRED_SPACE = $(MULTILIB_REQUIRED )
2198
+ MULTILIB_EXCEPTIONS_SPACE = $(MULTILIB_EXCEPTIONS )
2199
+ MULTILIB_REUSE_SPACE = $(MULTILIB_REUSE )
2200
+ MULTILIB_ENABLE = @multilib@
2201
+ endif
2202
+
2182
2203
# Use the genmultilib shell script to generate the information the gcc
2183
2204
# driver program needs to select the library directory based on the
2184
2205
# switches.
2185
2206
multilib.h : s-mlib; @true
2186
2207
s-mlib : $(srcdir ) /genmultilib Makefile
2187
2208
if test @enable_multilib@ = yes \
2209
+ || test @enable_multilib_space@ = yes \
2188
2210
|| test -n "$(MULTILIB_OSDIRNAMES)"; then \
2189
2211
$(SHELL) $(srcdir)/genmultilib \
2190
2212
"$(MULTILIB_OPTIONS)" \
2191
2213
"$(MULTILIB_DIRNAMES)" \
2192
2214
"$(MULTILIB_MATCHES)" \
2193
- " $( MULTILIB_EXCEPTIONS ) " \
2215
+ "$(MULTILIB_EXCEPTIONS_SPACE )" \
2194
2216
"$(MULTILIB_EXTRA_OPTS)" \
2195
2217
"$(MULTILIB_EXCLUSIONS)" \
2196
- " $( MULTILIB_OSDIRNAMES ) " \
2197
- " $( MULTILIB_REQUIRED ) " \
2218
+ "$(MULTILIB_OSDIRNAMES_SPACE )" \
2219
+ "$(MULTILIB_REQUIRED_SPACE )" \
2198
2220
"$(if $(MULTILIB_OSDIRNAMES),,$(MULTIARCH_DIRNAME))" \
2199
- " $( MULTILIB_REUSE ) " \
2200
- " @enable_multilib@ " \
2221
+ "$(MULTILIB_REUSE_SPACE )" \
2222
+ "$(MULTILIB_ENABLE) " \
2201
2223
> tmp-mlib.h; \
2202
2224
else \
2203
2225
$(SHELL) $(srcdir)/genmultilib '' '' '' '' '' '' '' '' \
0 commit comments