From 6a0c26eb352b3775714f04ba28311edc3ec0f6bf Mon Sep 17 00:00:00 2001 From: rofl0r Date: Wed, 20 Dec 2017 04:45:37 +0000 Subject: [PATCH] add support for tcc --- rcb.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rcb.pl b/rcb.pl index 91c0e99..de87079 100755 --- a/rcb.pl +++ b/rcb.pl @@ -351,7 +351,7 @@ if($haveconfig && !$ignore_rcb) { my $cfs = expandarr(@rcb_cfgs); $link = $ls if (defined($ls) && $ls ne ""); my $res = compile("$cc $cflags $cfs $cs $link -o $bin $ldflags"); - if($res =~ /undefined reference to/) { + if($res =~ /undefined reference to/ || $res =~ /undefined symbol/) { printc "red", "[RcB] undefined reference[s] found, switching to scan mode\n"; } else { if($?) { @@ -404,7 +404,10 @@ while(!$success) { printc "cyan", "[LD] ", $cmd, "\n"; @opa = `$cmd 2>&1`; for(@opa) { - if(/undefined reference to [\'\`\"]{1}([\w\._]+)[\'\`\"]{1}/) { + if( + /undefined reference to [\'\`\"]{1}([\w\._]+)[\'\`\"]{1}/ || + /undefined symbol [\']{1}([\w\._]+)[\']{1}/ + ) { my $temp = $1; print if $verbose; $missym{$temp} = 1; -- 2.11.4.GIT