FreeBSD 10 and manually compile applications without gcc

Matthew Seaman m.seaman at infracaninophile.co.uk
Mon Jan 19 13:47:43 UTC 2015


On 2015/01/19 13:29, Odhiambo Washington wrote:
> Now, suppose I did not install gcc from the ports and I'd like to install
> an application by hand using native tools for FreeBSD 10.x, how do I do
> that?
> I need a lecture on this:-)

This is exactly why the ports exists: the port maintainer understands
how to make whatever software it is compile smoothly and generally do
what you want, so you don't have to.

If you insist on building your own de-novo, then you are going to need
to crawl up that fairly steep learning curve.  I'm afraid I cannot
deliver a simple lecture on 'do this, and it will work' because, well,
it's not simple at all.

Your first hurdle seems to be getting configure to choose consistent
settings.  configure is expecting 'cc' on FreeBSD 10.x to actually be
clang -- which is what it usually is.  If you want to use gcc instead,
then you need to tell configure that, which you usually do by setting
the CC environment variable when you call configure.

	Matthew


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 882 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20150119/f2bc3376/attachment.sig>


More information about the freebsd-questions mailing list