-
Notifications
You must be signed in to change notification settings - Fork 285
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
--enable-asm-optimizations
seems to disable the feature according to summary.
#686
Comments
De culprit is in this line: Line 82 in 5f6a352
-AC_ARG_ENABLE(asm-optimizations, AS_HELP_STRING([--disable-asm-optimizations],[Do not use any CPU specific optimization routines]), asm_opt=no, asm_opt=yes)
+AC_ARG_ENABLE(asm-optimizations, AS_HELP_STRING([--disable-asm-optimizations],[Do not use any CPU specific optimization routines]), asm_opt=${enableval}, asm_opt=yes) should do the trick. The --enable-avx option does not have a similar problem. You can check this by looking whether |
@ktmf01 Yes, verifying the config.h is in my documentation for now. 😎 |
Could you check whether PR #693 fixes the iconv issue? |
@ktmf01
The workaround is always to specify it all manually like this instead:
(I believe this is an GNU iconv upstream problem.) |
Yes, I think it is. The only iconv thing in the configuration is the macro, which is copied directly from gnulib. Maybe you can try to get people there to fix, as they are probably way better qualified to do so. |
I like to be explicit with my configure options for reproducible and documented builds down the line. So usually I use an
--enable-xxx
option, if theconfigure --help
lists a--disable-xxx
option and "enabled" is the default anyway and I want to make sure the feature is enabled.flac's
configure --help
lists a--disable-asm-optimizations
option, so to make it explicit and I use--enable-asm-optimizations
, something like this:./configure --prefix=/usr/local/silo/flac/1.4.3 --disable-static --enable-asm-optimizations --enable-avx --with-ogg=/usr/local/silo/libogg/latest --with-libiconv-prefix=/usr/local/silo/libiconv/latest --disable-version-from-git --disable-silent-rules --disable-debug LDFLAGS='-Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-dead_strip'
To my surprise this doesn't work and actually does the opposite and disables the feature:
If AVX is enabled/disabled is not reported by the summary (missing feature!), so maybe it's the case there too?
As workaround I skipped both
--enable-asm-optimizations
(afterwards it reports "Asm optimizations : ..... yes"), and--enable-avx
and have to hope for the best. But it leaves a uncertainty if flac is properly optimized or not and if things randomly may change with the next build/ version.An unrelated note:
--with-libiconv-prefix=
does not work (it still grabs an old libiconv from somewhere else)The text was updated successfully, but these errors were encountered: