[LLVMdev] Building LLVM with cmake on FreeBSD
chuckr at telenix.org
Sat May 23 12:40:10 PDT 2009
Óscar Fuentes wrote:
>> Just to clarify things: have you *tried* to build LLVM with the
>> makefiles generated by cmake on your BSD system?
> Just checked that the makefiles generated by cmake work with `make' on
> FreeBSD 7.2 x86. The build fails while building `opt' because libdl is
They absolutely do work, even on FreeBSD-current( I run that here), but not
using the native make (the one built as part of "make world" which is a direct
descendant of "pmake". You have to use the GNU make, which is easily enough
added to any FreeBSD system via the FreeBSD ports system. However, when llvm is
brought into our base system (as is intended, I'm certain) BSD Makefiles will be
added, rather easily. If you're curious how such a thing can be done, in a
perfectly non-interfecring way, without your even being aware of it, I could
tell you, just let me know if you're curious. I know our make and the GNU make,
both, pretty well.
I did give you one example of a statement I found in your makefiles, which I'm
absolutely certain can't be understood by our make. Among several other things,
the "gmake" and "bmake" makefile conditionals don't look very much alike. You
CAN'T write one makefile which will automatically work in either system, I tried
that some years ago. I could explain that, too, but I won't bore you, unless
you tell me you're interested.
I've been wanting to recode our bame, to produce one make system that would
allow makefiles to operate automatically in either environment. I haven't
started on that task, yet.
More information about the llvm-dev