[opam-devel] passing through environment variables to builds
Peter Zotov
whitequark at whitequark.org
Thu Dec 4 20:19:00 GMT 2014
On 2014-12-04 13:29, Anil Madhavapeddy wrote:
> I'm having trouble compiling crypto-related libraries on MacOSX and
> OpenBSD, since it requires:
>
> CFLAGS="-I/usr/local/include" LDFLAGS="-I/usr/local/lib"
>
> to be passed in the environment. Our "conf-gmp" package currently
> just does a "cc -c gmp.c" which is very unlikely to work portably.
I believe this should be done at the compiler level. Requiring every
native package to figure out what CFLAGS/LDFLAGS the current platform
wants is unreasonable.
--
Peter Zotov
More information about the opam-devel
mailing list