clang and ports

Niclas Zeising niclas.zeising at
Wed Jun 22 21:25:45 UTC 2011

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


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

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

More information about the freebsd-ports mailing list