On 15 December 2011 05:44, Dean Glazeski <dngl...@gmail.com> wrote:
> Hey guys,
>
> Long time no see.  Recently, I got a bug request through Red Hat bugs to
> package the newer version of OpenOCD for Fedora.  It's been a while, but it
> finally kicked me in gear to take care of it (seeing as 0.5.0 was released
> quite a while ago).
>
> As I was working on the package, I noticed some issues with the compiler and
> tools detection in JimTCL.  Most importantly, it doesn't check for just the
> tool name, ie 'ld', if host and/or build are set in the configure line.  In
> my case, rpmbuild likes to set these options, but it isn't really a cross
> compile job (although it may be once I request a build in Fedora's systems).
>
> At any rate, I've attached the patch (perhaps kludge) that I'm using in the
> build to make JimTCL build properly.  I'm going to hold the RPM until I get
> word from you guys about whether this is a bug or if I should be posting
> this to another mailing list.
>
> Also, rpmlint picked up that the FSF address in your COPYING file is
> incorrect.  Patch attached as well.
>
> // Dean Glazeski
>

Thanks,

The jimtcl tweaks i will forward onto Steve for comment.

Cheers
Spen
--- jimtcl/autosetup/cc.tcl.bak	2011-12-14 20:54:36.612369362 -0600
+++ jimtcl/autosetup/cc.tcl	2011-12-14 21:15:43.173535171 -0600
@@ -240,7 +240,10 @@
 		set TOOL [string toupper $tool]
 		set exe [get-env $TOOL [get-define cross]$tool]
 		if {![find-executable $exe]} {
-			user-error "Failed to find $exe"
+            set exe $tool
+            if {![find-executable $exe]} {
+			    user-error "Failed to find $exe"
+            }
 		}
 		define $TOOL $exe
 	}
@@ -620,7 +623,7 @@
 	set try [list [get-env CC ""]]
 } else {
 	# Try some reasonable options
-	set try [list [get-define cross]cc [get-define cross]gcc]
+	set try [list [get-define cross]cc [get-define cross]gcc cc gcc]
 }
 define CC [find-an-executable {*}$try]
 if {[get-define CC] eq ""} {
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to