# HG changeset patch # User Volker Grabsch # Date 1273439782 -7200 # Node ID 5d47a5e4b43a9f314586f632cf4231380df1178e # Parent 26c10955389a142def82947447557d5ecfe2bea2 add test program for package libgomp (by Tony Theodore) diff -r 26c10955389a -r 5d47a5e4b43a src/libgomp-test.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/libgomp-test.c Sun May 09 23:16:22 2010 +0200 @@ -0,0 +1,17 @@ +/* This file is part of mingw-cross-env. */ +/* See doc/index.html for further information. */ + +#include +#include + +int main(int argc, char* argv[]) +{ + (void)argc; + (void)argv; + + #pragma omp parallel + printf("Hello from thread %d, nthreads %d\n", + omp_get_thread_num(), omp_get_num_threads()); + + return 0; +} diff -r 26c10955389a -r 5d47a5e4b43a src/libgomp.mk --- a/src/libgomp.mk Sun May 09 19:06:05 2010 +0200 +++ b/src/libgomp.mk Sun May 09 23:16:22 2010 +0200 @@ -28,4 +28,9 @@ --disable-shared \ LIBS='-lws2_32' $(MAKE) -C '$(1)/build/$(TARGET)/libgomp' -j '$(JOBS)' install + + '$(TARGET)-gcc' \ + -W -Wall -Werror -ansi -pedantic \ + '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libgomp.exe' \ + -fopenmp endef