compile error w/ apxs
Hello,
I was not able to compile on my system (Fedora 17), as it was failing on the call to apxs, with an error stating:
apxs:Error: Unknown option: f.
After looking at what was going on, the results on my system of MagickWand-config --cppflags --ldflags --libs|xargs resulted in the following:
-fopenmp -I/usr/include/ImageMagick -lMagickWand -lMagickCore -lMagickWand -lMagickCore
I was able to get past this by updating that portion of the Makefile with the following to strip out that option (believe real change would have to go into Makefile.am):
MagickWand-config --cppflags --ldflags --libs |xargs |sed "s/-fopenmp\s//"
Afterwards, I was able to get it to compile. I do not know if this negatively affects what is built, I have no intention of using the apache module. It might also be nice to be able to override whether the module is built by including an --disable option for apache (sorry if it is there and I did not see it, am terrible with autotools).
Thank you for this tool, am excited to see how much it will shave off my images!
-Mike
What's the output of
cc --version
cc (GCC) 4.7.2 20121109 (Red Hat 4.7.2-8)
Thanks. I'll have to add proper autotools detection for openmp, though I don't know it well.
AerisG222's fix works in src/apache2/Makefile.am, but on mine I needed the "global" flag in sed, as follows: |sed "s/-fopenmp\s//g"
@rflynn any update on this?