diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-03-31 15:53:57 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-03-31 15:53:57 +0000 |
commit | e033f8aec05bffe9321732c233b779f42db117a2 (patch) | |
tree | 264d480b86fd350558acad88f10cf99f8c097a31 | |
parent | ecd5006bcce99df4c46d9ed0e8d3364843867116 (diff) | |
download | newlib-e033f8aec05bffe9321732c233b779f42db117a2.zip newlib-e033f8aec05bffe9321732c233b779f42db117a2.tar.gz newlib-e033f8aec05bffe9321732c233b779f42db117a2.tar.bz2 |
* gentls_offsets: Add '-m32' flag to native compiler call to satisfy
cross platform builds.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rwxr-xr-x | winsup/cygwin/gentls_offsets | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 5a5e256..9157562 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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. diff --git a/winsup/cygwin/gentls_offsets b/winsup/cygwin/gentls_offsets index 561c775..0d796f6 100755 --- a/winsup/cygwin/gentls_offsets +++ b/winsup/cygwin/gentls_offsets @@ -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"; |