This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos 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]

[PATCH] Problem compiling host tools with different TCL version


Hi I'm running debian and I have different dirs for tcl development files
/usr/include/tcl8.4
/usr/lib/tcl8.4
for 8.4 tcl and 

/usr/include/tcl8.3
/usr/lib/tcl8.3
for 8.3 tcl

So here's a quick patch, maybe it could be in cvs or a better way could be 
implemented. It took me a lot of time until I found a solution for 
tclConfig.sh not being found.

Also I'm going to build a new set of toolchains for a arm-elf (AEB-1). I have 
a 2.95 set working but want to test 3.2 branch. 
Will I get any problems/improvements with 3.2 branch? Should I stick with 
2.95?
Do I need to patch 3.2 gcc like old 2.95 instructions in ecos site?

WBR Epilog
-- 
##############################
# Leon e Noel. -- palíndromo #
##############################
Index: Makefile
===================================================================
RCS file: /cvs/ecos/ecos/host/tools/configtool/standalone/wxwin/Makefile,v
retrieving revision 1.3
diff -u -3 -p -r1.3 Makefile
--- Makefile	20 May 2002 22:19:28 -0000	1.3
+++ Makefile	24 Feb 2003 06:29:17 -0000
@@ -66,6 +66,7 @@ WXCONFIG=$(WXBUILDDIR)/wx-config $(WXCON
 LOCALBINDIR=/home/ecos/misctools/H-i686-pc-linux-gnu/bin
 # A suitable home for archives of the tool
 LOCALARCHIVEDIR=/netopt/ecc-share/releng/eCosTools/eCosConfigurationTool
+TCL=--with-tcl=/usr --with-tcl-version=8.4 --with-tcl-lib=/usr/lib/tcl8.4 --with-tcl-header=/usr/include/tcl8.4
 
 ifneq "$(LEVEL)" "debug"
   WXDEBUGFLAGS=--without-debug_flag --without-debug_info --disable-debug 
@@ -146,9 +147,10 @@ EXTRACPPFLAGS=\
   -I$(ECOSDIR)/host/tools/ecostest/common\
   -I$(ECOSBUILDDIR)/libcdl\
   -I$(ECOSBUILDDIR)/infra\
+  -I/usr/include/tcl8.4
   -DecUSE_EXPERIMENTAL_CODE=$(USEEXPERIMENTALCODE)
 
-EXTRALDFLAGS=-L$(ECOSBUILDDIR)/infra -L$(ECOSBUILDDIR)/libcdl -lcdl -lcyginfra -ltcl
+EXTRALDFLAGS=-L$(ECOSBUILDDIR)/infra -L$(ECOSBUILDDIR)/libcdl -lcdl -lcyginfra -ltcl8.4
 
 .SUFFIXES:	.o .cpp .cxx
 
@@ -183,7 +185,7 @@ wx:
 ecc:
 	@mkdir -p $(ECOSBUILDDIR) ; \
         cd $(ECOSBUILDDIR) ; \
-        if test ! -f Makefile ; then $(ECOSDIR)/host/configure --prefix=$(ECOSBUILDDIR) $(ECCDEBUGFLAGS) --with-tcl=/usr ; \
+        if test ! -f Makefile ; then $(ECOSDIR)/host/configure --prefix=$(ECOSBUILDDIR) $(ECCDEBUGFLAGS) $(TCL) ; \
         fi ; \
         make
 

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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