diff options
Diffstat (limited to 'gcc/genmultilib')
-rw-r--r-- | gcc/genmultilib | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/genmultilib b/gcc/genmultilib index b5ffa9d4d52..3cac4e9ad7a 100644 --- a/gcc/genmultilib +++ b/gcc/genmultilib @@ -323,6 +323,7 @@ for combo in ${combinations}; do osdirout=`echo ${osdirout} | sed -e 's|^/||' -e 's|/$||g'` if [ "x${enable_multilib}" != xyes ]; then dirout=".:${osdirout}" + disable_multilib=yes else case "${osdirout}" in !*) @@ -403,6 +404,12 @@ moptions=`echo ${options} | sed -e 's,[ ][ ]*, ,g'` echo "" echo "static const char *multilib_options = \"${moptions}\";" +# Finally output the disable flag if specified +if [ "x${disable_multilib}" = xyes ]; then + echo "" + echo "#define DISABLE_MULTILIB 1" +fi + cd .. rm -r tmpmultilib.$$ |