From owner-freebsd-arm@freebsd.org Mon Oct 17 06:29:03 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D968AC15700 for ; Mon, 17 Oct 2016 06:29:03 +0000 (UTC) (envelope-from girivs@gmx.com) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3D4BC14F2 for ; Mon, 17 Oct 2016 06:29:03 +0000 (UTC) (envelope-from girivs@gmx.com) Received: from [24.6.127.25] by 3capp-mailcom-bs03.server.lan (via HTTP); Mon, 17 Oct 2016 08:28:54 +0200 MIME-Version: 1.0 Message-ID: From: "Shankar Giri Venkita Giri" To: freebsd-arm@freebsd.org Subject: XDEV fix Content-Type: text/plain; charset=UTF-8 Date: Mon, 17 Oct 2016 08:28:54 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K0:bQ1lBnvZa8uHGfdfR5gZta5MM2Tng6hen0aarbykIuA YmBOti0Ky4cHPcba9C2Z4zF/4Jy3yzTwSKjNmEFdy0seL4saNi ogNjdNOha+oSkoBX7h3taHoRpmnUnRsJHO48gSDaVfYqjUM2OI C3ExiwvZUkGFlCAX9LmKlaPjCbpT25GZscS+R+XKIH6wKVZXNg 8y23ZeG47F1WeeotF5JRziySDm62TOnSJ95l7XcZ7yMVO5UBbs 3gQ1RjtH4GNzV+IzzmV0mAkUk3gc++kJWqpszHRQy20m72EHa3 iF3/IsHBFE04nZoLuoU3ujTb87X X-UI-Out-Filterresults: notjunk:1;V01:K0:dVZmhCUAhck=:yEtrK21XPFW7JeC2cgn3Hl azA9yuNXmlcfbsJ5HLrRB7d3V58EILD01ijPSaoMjLlzkSJBzgs8dDgHvOyhBIMxH9dqguBTT XdAzLCbXqdhwdsujOUA7VkxqIi1z3YbsLUINFML6FDYn9oJs+/XqElIFQl9RuEm2Xp14RHqoW lglTjNx88FGXCrfP2UbLsR+IsXNdCbPKohE2J5+5i5GrHRNohIxUfoprkrkrB4XILjNlrbzop nv4vIEcxj5pHiu1uqleiwQ+fzCXyWt9ucKveDeJlgnOvSrex1Oxm9yZxopxhkkJ5tewyr04hJ CVKES1DCtDA31AvnOMMy4ZTWFgDBKArJvr6eUTZ21h88hNsPcCr6a/PW7afGeDT6tlU9Pe1yj IqcKvEz8z2pg/1dw2MKdS8JEuCJOfhcwE9V/SHr6b44xHNMwsV6z16vVvkMVfpl2S6zj8Rz93 pS1piijsYg== X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2016 06:29:03 -0000 XDEV has been broken for a while in FreeBSD 11. As of today, I had to perform minimal patches to get it to build successfully. Can someone review this and try it out to make sure? Also clang being a native cross-compiler, I was wondering if XDEV had specific advantages. ---------------------------------------------------------------------------------- diff --git a/lib/libc++/Makefile b/lib/libc++/Makefile index 6e70cf1..ec7725d 100644 --- a/lib/libc++/Makefile +++ b/lib/libc++/Makefile @@ -4,6 +4,7 @@ PACKAGE= clibs _LIBCXXRTDIR= ${.CURDIR}/../../contrib/libcxxrt +_LIBCXXDIR= ${.CURDIR}/../../contrib/libc++ HDRDIR= ${.CURDIR}/../../contrib/libc++/include SRCDIR= ${.CURDIR}/../../contrib/libc++/src CXXINCLUDEDIR= ${INCLUDEDIR}/c++/v${SHLIB_MAJOR} @@ -63,7 +64,7 @@ cxxrt_${_S}: ${_LIBCXXRTDIR}/${_S} .NOMETA .endfor WARNS= 0 -CFLAGS+= -isystem ${HDRDIR} -isystem ${_LIBCXXRTDIR} -nostdinc++ -nostdlib -DLIBCXXRT +CFLAGS+= -isystem ${_LIBCXXDIR} -isystem ${_LIBCXXRTDIR} -nostdinc++ -nostdlib -DLIBCXXRT -I${HDRDIR} .if empty(CXXFLAGS:M-std=*) CXXFLAGS+= -std=c++11 .endif diff --git a/lib/libdevdctl/Makefile b/lib/libdevdctl/Makefile index 5a18a14..963f906 100644 --- a/lib/libdevdctl/Makefile +++ b/lib/libdevdctl/Makefile @@ -1,6 +1,9 @@ # $FreeBSD$ LIB_CXX= devdctl +_LIBCXXDIR= ${.CURDIR}/../../contrib/libc++ +HDRDIR= ${.CURDIR}/../../contrib/libc++/include + INCS= consumer.h \ event.h \ event_factory.h \ @@ -13,6 +16,7 @@ SRCS= consumer.cc \ guid.cc INCSDIR= ${INCLUDEDIR}/devdctl +CFLAGS+= -isystem ${_LIBCXXDIR} -nostdinc++ -nostdlib -I${HDRDIR} WARNS?= 3 PRIVATELIB= true