Then OPENMP_CFLAGS contains -fopenmp and LDFLAGS contains -fopenmp BUT the .pc files are not updated to reflect the mandatory reference to openmp.
Linking with Wand then fails:
Code: Select all
gcc -g -Wall -o matrixview driver.o matrixview.o matrixview_textures.o -lbz2 -lWand -lMagick -lpthread -lGLU -lGL -lSM -lICE -lX11 -lm
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libMagick.so: undefined reference to `GOMP_parallel_end'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libMagick.so: undefined reference to `omp_get_num_threads'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libMagick.so: undefined reference to `GOMP_parallel_start'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libMagick.so: undefined reference to `omp_get_thread_num'
collect2: ld returned 1 exit status
I have no easy solution for this but it can certainly be fixed by updating the .pc files (?)