[ocaml-platform] Passing flags to the OCaml configure script?
Yong Lu
lyongu at yahoo.com
Sun Mar 31 21:18:53 BST 2013
I'm using a 64bit Linux distro.
Thanks,
Yong
On Mar 31, 2013, at 6:50 AM, Anil Madhavapeddy <anil at recoil.org> wrote:
> Are you on a 32-bit platform by any chance? If you clone:
> http://github.com/OCamlPro/opam-repository
>
> and look in the compilers/ directory, you can copy one of those into a custom compiler. Several of them define custom configure flags (look at the debug runtime one).
>
> You can use the local cloned repository via
>
> $ opam remote add dev <directory>
>
> and the new compiler should appear.
>
> -a
>
> On 31 Mar 2013, at 03:57, Yong Lu <lyongu at yahoo.com> wrote:
>
>> Hi,
>>
>> I'm writing to ask if there is a way to tell OPAM to pass flags to the OCaml config script?
>>
>> The reason I'm asking is because I was experimenting with dynamically linked share library (http://www.camlcity.org/knowledge/kb_002_shared_library.html), and the instructions require me to compile OCaml with the fPIC flag:
>>
>> <quote>
>> How to enable PIC for libasmrun.a:
>> When building OCaml, you need to configure it so that PIC is enabled:
>>
>> ./configure -cc "gcc -fPIC" -aspp "gcc -c -fPIC"
>>
>>
>> </quote>
>>
>> I searched the OPAM manual but could not find a solution. Any help is greatly appreciated.
>>
>> Thanks,
>>
>> -Yong
>> _______________________________________________
>> Platform mailing list
>> Platform at lists.ocaml.org
>> http://lists.ocaml.org/listinfo/platform
>
More information about the Platform
mailing list