On Sun, Jan 27, 2013 at 9:22 PM, Patrick Strasser
<[email protected]> wrote:
> schrieb Albert Cahalan on 2013-01-27 02:42:
>> I'd like to add flags for:
>>
>> a. Compiling the library
>> b. Compiling unit tests
>> c. Compiling anything else (target only, not build host)
>> d. Linking the library
>
> May one of the following works for you:
>
> 1) running automake or
I guess this sounds like what I'm looking for. I had expected
changes to be picked up automatically since the timestamp
on the file had changed. In any case, it isn't happy about the
versions. I could proceed as it says, but maybe that makes
things incompatible for somebody...?
albert@ubu:~/digitalradio/codec2-dev$ automake --no-force
configure.in:10: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call
detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
aclocal.m4:1029: _LT_SYS_MODULE_PATH_AIX is expanded from...
aclocal.m4:4177: _LT_LINKER_SHLIBS is expanded from...
aclocal.m4:5259: _LT_LANG_C_CONFIG is expanded from...
aclocal.m4:151: _LT_SETUP is expanded from...
aclocal.m4:80: LT_INIT is expanded from...
aclocal.m4:115: AC_PROG_LIBTOOL is expanded from...
configure.in:10: the top level
configure.in:10: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call
detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
aclocal.m4:4177: _LT_LINKER_SHLIBS is expanded from...
aclocal.m4:5259: _LT_LANG_C_CONFIG is expanded from...
aclocal.m4:151: _LT_SETUP is expanded from...
aclocal.m4:80: LT_INIT is expanded from...
aclocal.m4:115: AC_PROG_LIBTOOL is expanded from...
configure.in:10: the top level
configure.in:6: version mismatch. This is Automake 1.11.1,
configure.in:6: but the definition used by this AM_INIT_AUTOMAKE
configure.in:6: comes from Automake 1.9.6. You should recreate
configure.in:6: aclocal.m4 with aclocal and run automake again.
> 2) use --host= or --enable-static etc. or
> 3) or run CFLAGS="<value>" ./configure ; this should work too:
> ./configure CFLAGS="<value>" ; CFLAGS will propagate to CPPFLAGS AFAIK.
Passing CFLAGS to configure doesn't stick when I check in.
It won't help anybody else.
> Just of curiosity, what flags do you want to pass, what do you need it for?
There are a few categories: things that should be used always, things
that are temporary for me (passing CFLAGS to configure should work),
and things that need autoconfiguration because they only fit particular
compiler/hardware choices.
Via the configure script I have enabled:
CFLAGS="-Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wstrict-aliasing"
In kiss_fft.c and pack.c I have enabled:
#pragma GCC target("sse3,mmx,arch=prescott,fpmath=sse,no-ieee-fp,recip")
#pragma GCC
optimize("fast-math,omit-frame-pointer,unsafe-loop-optimizations,single-precision-constant")
I may want to compile for profiling; right now I'm going on guesses.
An interesting question related to this: Suppose that 50% of the platforms can
handle the codec in real-time. Changing code generation increases that to 70%,
but makes the remaining 30% unable to run the codec at all. Is that good or bad?
It depends on how you value a non-real-time codec. There is also the question
of how much CPU power must be left for other things in order to be practical,
and the question of half-duplex vs. full-duplex.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2