diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-20 07:40:24 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-20 07:40:24 +0000 |
commit | 0a2326d6d6ed56c12e2cf1f458a40d8d43e0c9db (patch) | |
tree | 98af3c4457424fafdb93e9226d24dc790395de64 /gcc/genmultilib | |
parent | 59798ded393cd850a2bd5de06c99fabd564782f5 (diff) | |
download | gcc-0a2326d6d6ed56c12e2cf1f458a40d8d43e0c9db.tar.gz |
PR other/7956
* genmultilib: New variable disable_multilib. Set it to 'yes'
if enable_multilib was set to 'no'. Emit DISABLE_MULTILIB
if disable_multilib was set to 'yes'.
* gcc.c: Include multilib.h before tm.h.
* config/sparc/sol2-bi.h (LINK_ARCH_SPEC): Emit an error
message for multiarch options if DISABLE_MULTILIB is set.
* config/sparc/sol2-gld-bi.h (LINK_ARCH_SPEC): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74875 138bc75d-0d04-0410-961f-82ee72b054a4
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.$$ |