All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike McClurg <mike.mcclurg@citrix.com>
To: Tim Deegan <Tim.Deegan@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Jonathan, Ludlam <Jonathan.Ludlam@eu.citrix.com>
Subject: Re: [PATCH] OCaml tools: ask compiler for correct library path
Date: Wed, 8 Jun 2011 11:53:52 +0100	[thread overview]
Message-ID: <4DEF54C0.8020709@citrix.com> (raw)
In-Reply-To: <20110607202153.GA9629@whitby.uk.xensource.com>

On 07/06/11 21:21, Tim Deegan wrote:
> Hi,
>
> At 18:28 +0100 on 07 Jun (1307471313), Mike McClurg wrote:
>> From: Mike McClurg<mike.mcclurg@citrix.com>
>>
>> OCaml libraries will live in /usr/local/ if the user compiles OCaml
>> from source. This patch asks the OCaml compiler where we should look
>> for libraries.
> This patch edits the #include path, not the library path.  Are there
> any ocaml support libraries that would require -L options to $(CC)?
>
> Tim.
Thank you for correcting me, I misspoke about the include path. No, 
there is no requirement to pass -L options on to $(CC). The -I option 
will be sufficient, and this patch removes hard coded file paths from 
the makefile.

Mike

>> NB: it may be that we should do the same thing for the NetBSD case,
>> but I don't have a BSD box to test this out.
>>
>> Signed-off-by: Mike McClurg<mike.mcclurg@citrix.com>
>>
>>
>> diff -r 37c77bacb52a -r ebc32e1f7f6f tools/ocaml/common.make
>> --- a/tools/ocaml/common.make   Mon May 23 17:38:28 2011 +0100
>> +++ b/tools/ocaml/common.make   Tue Jun 07 18:01:10 2011 +0100
>> @@ -9,7 +9,7 @@
>>   OCAMLYACC ?= ocamlyacc
>>   CFLAGS += -fPIC -Werror
>> -CFLAGS-$(CONFIG_Linux) += -I/usr/lib64/ocaml -I/usr/lib/ocaml
>> +CFLAGS-$(CONFIG_Linux) += -I$(shell ocamlc -where)
>>   CFLAGS-$(CONFIG_NetBSD) += -I/usr/pkg/lib/ocaml -fPIC
>>   OCAMLOPTFLAG_G := $(shell $(OCAMLOPT) -h 2>&1 | sed -n 's/^  *\(-g\) .*/\1/p')
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel

  reply	other threads:[~2011-06-08 10:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-07 17:28 [PATCH] OCaml tools: ask compiler for correct library path Mike McClurg
2011-06-07 20:21 ` Tim Deegan
2011-06-08 10:53   ` Mike McClurg [this message]
2011-06-08 13:45     ` Tim Deegan
2011-06-08 13:45   ` Vincent Hanquez
2011-06-08 13:46     ` Tim Deegan
2011-06-08 14:00       ` Vincent Hanquez
2011-06-21 17:03 ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DEF54C0.8020709@citrix.com \
    --to=mike.mcclurg@citrix.com \
    --cc=Jonathan.Ludlam@eu.citrix.com \
    --cc=Tim.Deegan@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.