From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 28 14:40:02 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 57EBF68A for ; Sun, 28 Oct 2012 14:40:02 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id D0D958FC16 for ; Sun, 28 Oct 2012 14:40:01 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id 16so3118417wgi.31 for ; Sun, 28 Oct 2012 07:40:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bluelife.at; s=google; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=rWWE9dNRO4R4o3WA+1ezjijuPgoI+9IVQLHprWYMsLw=; b=Jzz7ndJQ3RBMMR1ng+aQs3Y+pIVn0kFBDIo8PLJy2ae6LUwJSrrCpmEChqra+El78C I4IiQElum8/3HUt1JIByLOkZQuHGJZuspyIhc7rR+oTaQR9Bmo6MO52sEPcj4SundP8w os/OoMDb2NHGu7kUf/m/YzxCL6cJ3LxRJULGU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=rWWE9dNRO4R4o3WA+1ezjijuPgoI+9IVQLHprWYMsLw=; b=FJf8K748MTl8f7UP7ic8TzsuUkITnvcPcfvjL4k0RALkchhe2nsQtjwhHyjxWJhwp/ I/drXEFZp2JsWSPG3elPbmAJp0lcP/PXDX0nisn8YqifQxdkeTgIhzWTGtj9LPkuiRO4 TNs+7dbWI5rt5LcOJFACtAy1ciMcdFzpqJpsQRqOnqZ8uvlcuEJQIJAZhArCJcSReTx7 BDVPPlEZFWnNwGHiRMq50GZyi6vh+xjWqWt87KGlIr3AIs3SCZaUmeLDmKWWJNZZiRYe H/GldBzZm648zY7Jtw/ZZbq+6Gdwd1aNZ03j31YzAumKyXl9Eh847/dpfGbyOkEPWK8C CEzQ== MIME-Version: 1.0 Received: by 10.180.86.65 with SMTP id n1mr11709018wiz.0.1351435200423; Sun, 28 Oct 2012 07:40:00 -0700 (PDT) Received: by 10.194.104.98 with HTTP; Sun, 28 Oct 2012 07:40:00 -0700 (PDT) X-Originating-IP: [2001:470:1f0b:1dbc:221:6aff:fe1e:6c60] In-Reply-To: <503E1AA6.4010304@FreeBSD.org> References: <503E1AA6.4010304@FreeBSD.org> Date: Sun, 28 Oct 2012 15:40:00 +0100 Message-ID: Subject: Re: virtualbox and non-default compiler From: =?ISO-8859-1?Q?Bernhard_Fr=F6hlich?= To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQmZWVVIYJG37x1zV9fA7UXAvomCL38+111EKEaF/PIzfyxUsskdmXrt3hU4Iy3c2owM8JqR Cc: freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 28 Oct 2012 14:40:02 -0000 On Wed, Aug 29, 2012 at 3:35 PM, Andriy Gapon wrote: > > There is another issue with building virtualbox-ose port using a non-defa= ult > compiler. CFLAGS/CXXFLAGS and LDFLAGS defined by ports framework (and us= er) are > not passed to virtualbox build at all. > So, whatever bsd.gcc.mk carefully configures for e.g. gcc46 is not reflec= ted in > the build. Most importantly this is -Wl,-rpath option in LDFLAGS that sh= ould > ensure that the correct C++ run-time libraries are picked up. > > I do not know how pass those make variables to kBuild-based virtualbox bu= ild. 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. --=20 Bernhard Fr=F6hlich http://www.bluelife.at/