diff options
author | Hans <h-c-mueller@users.noreply.github.com> | 2022-09-18 01:56:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-17 19:56:25 -0400 |
commit | ee22ecbd11f52f8de1adbb2a6561aee2125a576a (patch) | |
tree | 7db565ad12b2bc7ec66a5b20b964e377415bb67c /testsuite | |
parent | 5e010474cf2e30fa053f0a1a460a752f06438cf7 (diff) | |
download | libffi-ee22ecbd11f52f8de1adbb2a6561aee2125a576a.tar.gz |
Add MSYS configuration files (#728)
* Add MSYS configuration files
MSYS behaves very similiar to Cygwin, e.g. also __CYGWIN__ is defined.
Now 'make check' passes on MSYS without extra patches.
* Fix warning extra tokens at end of #endif in closures.c
Extra tokens converted into a comment. Also nearby indentations corrected.
* Fix missing prototype warning mkostemp() on Cygwin
Cygwin requires also _GNU_SOURCE to be defined to enable mkostemp() prototype.
* Fix warning label ‘out’ defined but not used in ffi functions
Define same preprocessor conditions for goto and label visibility.
* Fix warning label ‘out’ defined but not used and related indentations.
Define same preprocessor conditions for goto and label visibility. Correct also
related indentations.
Co-authored-by: Hannes Müller <>
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/lib/target-libpath.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/lib/target-libpath.exp b/testsuite/lib/target-libpath.exp index 6b7beba..e33a656 100644 --- a/testsuite/lib/target-libpath.exp +++ b/testsuite/lib/target-libpath.exp @@ -175,7 +175,7 @@ proc set_ld_library_path_env_vars { } { } else { setenv DYLD_LIBRARY_PATH "$ld_library_path" } - if { [istarget *-*-cygwin*] || [istarget *-*-mingw*] } { + if { [istarget *-*-cygwin*] || [ istarget *-*-msys* ] || [istarget *-*-mingw*] } { if { $orig_path_saved } { setenv PATH "$ld_library_path:$orig_path" } else { @@ -271,7 +271,7 @@ proc get_shlib_extension { } { if { [ istarget *-*-darwin* ] } { set shlib_ext "dylib" - } elseif { [ istarget *-*-cygwin* ] || [ istarget *-*-mingw* ] } { + } elseif { [ istarget *-*-cygwin* ] || [ istarget *-*-msys* ] || [ istarget *-*-mingw* ] } { set shlib_ext "dll" } elseif { [ istarget hppa*-*-hpux* ] } { set shlib_ext "sl" |