Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jun 2011 23:06:30 +0200
From:      Niclas Zeising <niclas.zeising@gmail.com>
To:        ports@freebsd.org
Subject:   clang and ports
Message-ID:  <4E025956.5070903@gmail.com>

next in thread | raw e-mail | index | archive | help
Hello list!
When clang runs, it sometimes warns like this:

>clang: warning: argument unused during compilation: '-Wall'

This is extra true while linking object files, and tests done in
configure. This sometimes makes configure believe a test failed while it
in reality succeeded, as is the case in a few tests in firefox 5
configure, amongst other places. These warnings can be suppressed with
the parameter -Qunused-arguments.
I therefore suggest that you add

>CFLAGS+=-Qunused-parameter
>CXXFLAGS+=-Qunused-parameter

to make.conf or similar when building ports with clang.
Best Regards!
-- 
Niclas Zeising

P.S.
I got Firefox 5 to build and run using clang, running on latest
9-Current, amd64. :)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E025956.5070903>