From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id A2F4EBBAF for ; Wed, 3 Feb 2010 10:17:47 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAF3OaEtSkiEx/2dsb2JhbACDM8QdkDmBLYI+WgSDDA X-IronPort-AV: E=Sophos;i="4.49,397,1262559600"; d="scan'208";a="42844808" Received: from 5070.info ([82.146.33.49]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 03 Feb 2010 10:17:47 +0100 X-Bogosity: Unsure, tests=bogofilter Received: from [82.146.37.6] (john.ispsystem.net [82.146.37.6]) (authenticated bits=0) by 5070.info (8.14.4/8.14.3) with ESMTP id o139Hic3017134 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 3 Feb 2010 09:17:46 GMT (envelope-from john@ispsystem.com) Subject: Re: [Caml-list] ocamlbuild & linker options From: John Lepikhin To: caml-list@inria.fr In-Reply-To: <4B693C33.2080702@gmail.com> References: <1265187726.4159.7.camel@john.ispsystem.net> <4B693C33.2080702@gmail.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 03 Feb 2010 17:17:39 +0800 Message-ID: <1265188659.4159.11.camel@john.ispsystem.net> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (5070.info [82.146.33.49]); Wed, 03 Feb 2010 09:17:47 +0000 (UTC) X-Spam: no; 0.00; gcc:01 -cclib:01 -cclib:01 gcc:01 -wl:01 caml-list:01 comma:03 linker:07 linker:07 path:07 path:07 john:08 john:08 should:13 but:14 Hello, > > Is there a way to pass option "-R /some/path" to GCC linker from > > ocamlbuild? I tried "ocamlbuild -lflags -cclib,-R,/some/path", but > > without success. > try: ocamlbuild -lflags -cclib,-R,-cclib,/some/path Thank you for quick reply. I made a mistake in the first post. Option that should be passed to GCC: -Wl,-R/some/path (with comma).