This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATH][Ada] Fix multilib handling of gnat.dg when RUNTESTFLAGS is used


> -		set root [file dirname $file]
> -		set CC "$file -I$root/ada/rts --GCC=$root/xgcc --GNATBIND=$root/gnatbind
> --GNATLINK=$root/gnatlink -cargs -B$root -largs --GCC=$root/xgcc -B$root
> -margs"; -	    } else {
> -		set CC [transform gnatmake]
> -	    }
> -	} else {
> -	    set CC [transform gnatmake]
> -	}
> -	return $CC
> +proc local_find_gnatmake {} {
> +    global tool_root_dir
> +
> +    if ![is_remote host] {
> +        set file [lookfor_file $tool_root_dir gnatmake]
> +        if { $file == "" } {
> +    	set file [lookfor_file $tool_root_dir gcc/gnatmake]
> +        }
> +        if { $file != "" } {
> +    	set root [file dirname $file]
> +    	set CC "$file --GCC=$root/xgcc --GNATBIND=$root/gnatbind
> --GNATLINK=$root/gnatlink -cargs -B$root -largs -B$root -margs -B$root"; + 
>       } else {

There is a problem though: you have removed --GCC=$root/xgcc from -largs so 
gnatlink will use 'gcc' to compile and '/usr/bin/gcc' to link.

-- 
Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]