diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2016-07-25 13:49:13 +0400 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2016-07-25 02:49:13 -0700 |
commit | e19bf0763a69fef461adc3f133b82eb41ac954de (patch) | |
tree | 02b730ccc62538adab1f65a9c03f65653c284c0b /configure | |
parent | 00d5cd182732c6bfc431f0e4f38e1b18647ce938 (diff) | |
download | dlfcn-win32-e19bf0763a69fef461adc3f133b82eb41ac954de.tar.gz dlfcn-win32-e19bf0763a69fef461adc3f133b82eb41ac954de.tar.bz2 dlfcn-win32-e19bf0763a69fef461adc3f133b82eb41ac954de.zip |
configure: put test.{c,dll} to current directory (#26)
instead of /tmp/ to avoid races when building for multiple targets.
Add test files to .gitignore and `make clean`.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -154,13 +154,13 @@ disabled shared && disabled static && { | |||
154 | } | 154 | } |
155 | 155 | ||
156 | # simple cc test | 156 | # simple cc test |
157 | cat > /tmp/test.c << EOF | 157 | cat > tmptest.c << EOF |
158 | #include <windows.h> | 158 | #include <windows.h> |
159 | void function(void) | 159 | void function(void) |
160 | { LoadLibrary(NULL); } | 160 | { LoadLibrary(NULL); } |
161 | EOF | 161 | EOF |
162 | echo testing compiler: $cc -shared -o /tmp/test.dll /tmp/test.c | 162 | echo testing compiler: $cc -shared -o tmptest.dll tmptest.c |
163 | $cc -shared -o /tmp/test.dll /tmp/test.c | 163 | $cc -shared -o tmptest.dll tmptest.c |
164 | 164 | ||
165 | test "$?" != 0 && { | 165 | test "$?" != 0 && { |
166 | echo "$cc could not create shared file with Windows API functions."; | 166 | echo "$cc could not create shared file with Windows API functions."; |