summaryrefslogtreecommitdiff
path: root/meta-pkgs/boost/patches/patch-ag
blob: 4c71d19d6e13df1b25cf6b6c7c0bb3edd89c9a19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-ag,v 1.7 2012/07/02 07:02:26 adam Exp $

Pass CFLAGS to the compiler.

--- tools/build/v2/engine/build.jam.orig	2011-02-24 08:50:34.000000000 +0000
+++ tools/build/v2/engine/build.jam
@@ -192,7 +192,7 @@ toolset como como : "-o " : -D
     : -L$(--python-lib[1]) -l$(--python-lib[2]) ;
 ## Clang Linux 2.8+
 toolset clang clang :  "-o " : -D
-    : -Wno-unused -Wno-format
+    : $(CFLAGS) -Wno-unused -Wno-format
     [ opt --release : -Os ]
     [ opt --debug : -g -O0 -fno-inline ]
     [ opt --profile : -finline-functions -g ]