Juan Jose Garcia-Ripoll <juanjose.garciarip...@googlemail.com> writes:

| On Mon, Oct 4, 2010 at 9:39 PM, Gabriel Dos Reis <g...@cs.tamu.edu> wrote:
| 
|     Attached is a patch I had needed (and that has been sitting on my
|     hard-drive
|     for a while now.)  It addresses some pesky issues related to
|     cross-compiling ECL.
| 
| 
| Hi Gabriel, thanks a lot for the patch. It looks good and I like the idea of
| "brief-namestring". Hopefully this will help making cross-compilation easier.

Hi Juanjo,

I figured the patch needed a tightening.  The C compiler needs to be told
to consider the current directory as part of the include search paths --
because we are now resolving the path starting from the current directory.
Fixed with the attached patch.

(Tested with an OpenAxiom/ECL build.)

-- Gaby

Index: src/cmp/cmpdefs.lsp
===================================================================
RCS file: /cvsroot/ecls/ecl/src/cmp/cmpdefs.lsp,v
retrieving revision 1.98
diff -p -r1.98 cmpdefs.lsp
*** src/cmp/cmpdefs.lsp	4 Oct 2010 19:50:17 -0000	1.98
--- src/cmp/cmpdefs.lsp	6 Oct 2010 03:45:26 -0000
*************** coprocessor).")
*** 43,50 ****
  (defvar *ld-format* #-msvc "~A -o ~S -L~S ~{~S ~} ~...@[~s~]~{ '~A'~} ~A"
                      #+msvc "~A -Fe~S~* ~{~S ~} ~...@[~s~]~{ '~A'~} ~A")
  
! (defvar *cc-format* #-msvc "~A \"-I~A\" ~A ~:[~*~;~A~] -w -c \"~A\" -o \"~A\"~{ '~A'~}"
!                     #+msvc "~A -I\"~A\" ~A ~:[~*~;~A~] -w -c \"~A\" -Fo\"~A\"~{ '~A'~}")
  
  #-dlopen
  (defvar *ld-flags* "@LDFLAGS@ -lecl @CORE_LIBS@ @FASL_LIBS@ @LIBS@")
--- 43,50 ----
  (defvar *ld-format* #-msvc "~A -o ~S -L~S ~{~S ~} ~...@[~s~]~{ '~A'~} ~A"
                      #+msvc "~A -Fe~S~* ~{~S ~} ~...@[~s~]~{ '~A'~} ~A")
  
! (defvar *cc-format* #-msvc "~A -I. \"-I~A\" ~A ~:[~*~;~A~] -w -c \"~A\" -o \"~A\"~{ '~A'~}"
!                     #+msvc "~A -I. -I\"~A\" ~A ~:[~*~;~A~] -w -c \"~A\" -Fo\"~A\"~{ '~A'~}")
  
  #-dlopen
  (defvar *ld-flags* "@LDFLAGS@ -lecl @CORE_LIBS@ @FASL_LIBS@ @LIBS@")
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list

Reply via email to