OSDN Git Service

* gentls_offsets: Add '-m32' flag to native compiler call to satisfy
authorcorinna <corinna>
Thu, 31 Mar 2005 15:53:55 +0000 (15:53 +0000)
committercorinna <corinna>
Thu, 31 Mar 2005 15:53:55 +0000 (15:53 +0000)
cross platform builds.

winsup/cygwin/ChangeLog
winsup/cygwin/gentls_offsets

index 5a5e256..9157562 100644 (file)
@@ -1,5 +1,10 @@
 2005-03-31  Corinna Vinschen  <corinna@vinschen.de>
 
+       * gentls_offsets: Add '-m32' flag to native compiler call to satisfy
+       cross platform builds.
+
+2005-03-31  Corinna Vinschen  <corinna@vinschen.de>
+
        * errno.cc (NO_SYSTEM_RESOURCES): Map to EAGAIN.
        (NONPAGED_SYSTEM_RESOURCES): Ditto.
        (PAGED_SYSTEM_RESOURCES): Ditto.
index 561c775..0d796f6 100755 (executable)
@@ -71,8 +71,8 @@ EOF
 EOF
 close TMP;
 system @ARGV, '-o', "/tmp/$$-1.cc", '-E', "/tmp/$$.cc";
-system 'g++', '-o', "/tmp/$$.a.out", "/tmp/$$-1.cc" and
-($? == 127 && system 'c++',  '-o', "/tmp/$$.a.out", "/tmp/$$-1.cc") and
+system 'g++', '-m32', '-o', "/tmp/$$.a.out", "/tmp/$$-1.cc" and
+($? == 127 && system 'c++', '-m32', '-o', "/tmp/$$.a.out", "/tmp/$$-1.cc") and
 die "$0: couldn't generate executable for offset calculation \"/tmp/$$.a.out\" - $!\n";
 open(TLS_OUT, '>', $tls_out) or die "$0: couldn't open tls index file \"tls_out\" - $!\n";
 open(OFFS, "/tmp/$$.a.out|") or die "$0: couldn't run \"/tmp/$$.a.out\" - $!\n";