OSDN Git Service

2004-06-22 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.misc-tests / linkage.exp
index 7aa9966..9c8936d 100644 (file)
@@ -53,6 +53,11 @@ if [isnative] then {
            if [ string match "*32-bit*" $file_string ] {
                set native_cflags "-m31"
            }
+       } elseif [istarget "x86_64-*-linux*"] {
+           set file_string [exec file "linkage-x.o"]
+           if [ string match "*32-bit*" $file_string ] {
+               set native_cflags "-m32"
+           }
        } elseif [istarget "*-hp-hpux*"] {
            set file_string [exec file "linkage-x.o"]
            if [ string match "*ELF-64*" $file_string ] {