From owner-freebsd-emulation@FreeBSD.ORG Wed Aug 29 13:35:37 2012 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24F551065673; Wed, 29 Aug 2012 13:35:37 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 21B838FC15; Wed, 29 Aug 2012 13:35:35 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id QAA07254; Wed, 29 Aug 2012 16:35:34 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <503E1AA6.4010304@FreeBSD.org> Date: Wed, 29 Aug 2012 16:35:34 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:14.0) Gecko/20120730 Thunderbird/14.0 MIME-Version: 1.0 To: freebsd-emulation@FreeBSD.org X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: virtualbox and non-default compiler X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2012 13:35:37 -0000 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. -- Andriy Gapon