---
I've modified configure to add support to tcc, which is a small, fast but
unoptimized c compiler. I found a few problems in inline asm and mmx code,
despite the configure checks, so I went ahead and disabled inline asm for now.
However I'm now stuck at this strange error: even if I disable JACK support I
still get some missing jack functions calls, as below
tcc: error: undefined symbol 'jack_activate'
tcc: error: undefined symbol 'jack_frames_since_cycle_start'
tcc: error: undefined symbol 'jack_port_get_buffer'
tcc: error: undefined symbol 'jack_client_close'
tcc: error: undefined symbol 'jack_deactivate'
tcc: error: undefined symbol 'jack_client_open'
tcc: error: undefined symbol 'jack_get_sample_rate'
tcc: error: undefined symbol 'jack_get_buffer_size'
tcc: error: undefined symbol 'jack_port_register'
tcc: error: undefined symbol 'jack_set_process_callback'
tcc: error: undefined symbol 'jack_on_shutdown'
tcc: error: undefined symbol 'jack_set_xrun_callback'
Any idea why these functions get dragged in? This doesn't happen with other
comilers.
Vittorio
configure | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index a0d2d54..794fbf4 100755
--- a/configure
+++ b/configure
@@ -2577,6 +2577,12 @@ probe_cc(){
_depflags='-MMD'
_cflags_speed='-O3'
_cflags_size='-Os'
+ elif $_cc -v 2>&1 | grep -q tcc; then
+ _type=tcc
+ _ident=$($_cc -v | head -n1)
+ _depflags='-MD -MF $(@:.o=.d)'
+ _cflags_speed='-O2'
+ _cflags_size='-Os'
elif $_cc -V 2>&1 | grep -q Sun; then
_type=suncc
_ident=$($_cc -V 2>&1 | head -n1 | cut -d' ' -f 2-)
@@ -2751,7 +2757,7 @@ if test -n "$sysroot"; then
add_cppflags --sysroot="$sysroot"
add_ldflags --sysroot="$sysroot"
;;
- tms470)
+ tms470|tcc)
add_cppflags -I"$sysinclude"
add_ldflags --sysroot="$sysroot"
;;
@@ -4003,6 +4009,8 @@ elif enabled_any msvc icl; then
# not supported (build will fail)
disable inline_asm
fi
+elif enabled tcc; then
+ disable inline_asm
fi
case $target_os in
--
1.7.9.5
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel