-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile error w/ apxs #21
Comments
What's the output of
|
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: |
micmro
pushed a commit
to micmro/imgmin
that referenced
this issue
Aug 3, 2015
rflynn
added a commit
that referenced
this issue
Aug 9, 2015
issue #28 fixed with @AerisG222 solution from #21
@rflynn any update on this? |
zvezdochiot
pushed a commit
to ImageProcessing-ElectronicPublications/imgmin
that referenced
this issue
Dec 24, 2022
zvezdochiot
pushed a commit
to ImageProcessing-ElectronicPublications/imgmin
that referenced
this issue
Dec 24, 2022
issue rflynn#28 fixed with @AerisG222 solution from rflynn#21
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: