virtualbox and non-default compiler

Bernhard Fröhlich decke at bluelife.at
Sun Oct 28 14:40:02 UTC 2012


On Wed, Aug 29, 2012 at 3:35 PM, Andriy Gapon <avg at freebsd.org> wrote:
>
> There is another issue with building virtualbox-ose port using a non-default
> compiler.  CFLAGS/CXXFLAGS and LDFLAGS defined by ports framework (and user) are
> not passed to virtualbox build at all.
> So, whatever bsd.gcc.mk carefully configures for e.g. gcc46 is not reflected in
> the build.  Most importantly this is -Wl,-rpath option in LDFLAGS that should
> ensure that the correct C++ run-time libraries are picked up.
>
> I do not know how pass those make variables to kBuild-based virtualbox build.

CFLAGS/CXXFLAGS/LDFLAGS are a bit handcrafted and generated in:
https://www.virtualbox.org/browser/vbox/trunk/Config.kmk#L3254

That stuff is used for kernel module and userland code.

-- 
Bernhard Fröhlich
http://www.bluelife.at/


More information about the freebsd-emulation mailing list