From owner-freebsd-performance@FreeBSD.ORG Thu Sep 13 02:14:12 2012 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 63F89106566C; Thu, 13 Sep 2012 02:14:12 +0000 (UTC) (envelope-from jbeich@tormail.org) Received: from cpanel.centralhosts.net (cpanel.centralhosts.net [66.55.76.125]) by mx1.freebsd.org (Postfix) with ESMTP id 3A9E88FC08; Thu, 13 Sep 2012 02:14:11 +0000 (UTC) Received: from tor20.anonymizer.ccc.de ([31.172.30.3]:47047 helo=internal.tormail.org) by cpanel.centralhosts.net with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.77) (envelope-from ) id 1TByud-0006mO-AK; Wed, 12 Sep 2012 22:12:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tormail.org; s=tm; h=Message-Id:X-TorMail-User:Content-Type:MIME-Version:References:Date:In-Reply-To:Subject:Cc:To:From; bh=RWAnX3KeIwA4EILw2amZZjO9rY7lfAp0bklXucv2i3A=; b=oLlr/7gfCjcFkyaSlIBliQQMHo8UqNEejzYsNfE3s4MUuE43HmWDuSVVDmKNHi/0hGuhEbD4I0GUtFl5QijAtlD6dXTjV5quU/fbMIviLsK+shcwr22Fncfiwu2Jia12IdylvWzPOWc+ArqDQah81tJx6XiTLNPsUn1H7ct/Wgw=; Received: from jbeich by internal.tormail.org with local (Exim 4.63) (envelope-from ) id 1TByuW-0000gM-VF; Thu, 13 Sep 2012 02:12:12 +0000 From: Jan Beich To: Dimitry Andric In-Reply-To: <5048F733.3090301@FreeBSD.org> (Dimitry Andric's message of "Thu, 06 Sep 2012 21:19:15 +0200") Date: Wed, 12 Sep 2012 16:08:18 -1000 References: <5047659D.8000107@mail.zedat.fu-berlin.de> <50489C47.4040101@FreeBSD.org> <5048EB56.2070402@zedat.fu-berlin.de> <5048F733.3090301@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain X-TorMail-User: jbeich Message-Id: <1TByuW-0000gM-VF@internal.tormail.org> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.centralhosts.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tormail.org X-Mailman-Approved-At: Thu, 13 Sep 2012 03:07:52 +0000 Cc: "freebsd-performance@freebsd.org" , "O. Hartmann" , Ports FreeBSD Subject: Re: Help. Porting "FreeOCL" fails (atomic_ops.h missing, CLANG++ libc++ issues ...) X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2012 02:14:12 -0000 Dimitry Andric writes: > Now, as to how we can convince CMake to put the -I/usr/local/include at > the end... Maybe we should just patch the CMakeLists.txt, but that is a > rather ugly solution. :) Try using CPPFLAGS+= -isystem${LOCALBASE}/include gcc(1) (and clang) has a flag for systems broken by design: -isystem dir Search dir for header files, after all directories specified by -I but before the standard system directories. Mark it as a system directory, so that it gets the same special treatment as is applied to the standard system directories. If dir begins with "=", then the "=" will be replaced by the sysroot prefix; see --sysroot and -isysroot. For example, firefox uses it to avoid picking up lang/spidermonkey headers.