From fe20c843b183a06b745be5dab35e9a51e4737c17 Mon Sep 17 00:00:00 2001 From: John Marino Date: Sun, 22 Nov 2015 14:33:44 +0100 Subject: [PATCH] compilers.conf: modify default DPORT_CLANG_STD_INCOPTXX I am not entirely sure INCOPTXX even needs to be set for clang, but let's change DPORT_CLANG_STD_INCOPTXX from: -isystem /usr/include/c++/5.0 to: -cxx-isystem /usr/include/c++/5.0 The inclusion only applies to c++, so let's specify that. This only applies to clang from dports and it can be overridden. --- etc/defaults/compilers.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/defaults/compilers.conf b/etc/defaults/compilers.conf index db687255ec..6dceb4a93d 100644 --- a/etc/defaults/compilers.conf +++ b/etc/defaults/compilers.conf @@ -33,7 +33,7 @@ STD_INCOPT="-nostdinc -iprefix ${INCPREFIX} -iwithprefixbefore /usr/include" DPORT_GCC_STD_INCOPTXX="-isystem /usr/local/lib/${CCVER}/include/c++ \ -isystem /usr/local/lib/${CCVER}/include/c++/${MACHARCH}-portbld-dragonfly${MACHREL}" -DPORT_CLANG_STD_INCOPTXX="-isystem /usr/include/c++/5.0" +DPORT_CLANG_STD_INCOPTXX="-cxx-isystem /usr/include/c++/5.0" # For each custom compiler definition, it is mandatory to define the -- 2.41.0