summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/boost.spec4
1 files changed, 3 insertions, 1 deletions
diff --git a/packaging/boost.spec b/packaging/boost.spec
index ac3ddd1..e0aad2c 100644
--- a/packaging/boost.spec
+++ b/packaging/boost.spec
@@ -429,7 +429,9 @@ EOF
# perform the compilation
./b2 %{?_smp_mflags} --prefix=%{_prefix} --libdir=%{_libdir} \
- --user-config=./user-config.jam
+ --user-config=./user-config.jam ${CFLAGS:+cflags="$CFLAGS"} \
+ ${CXXFLAGS:+cxxflags="$CXXFLAGS"} ${LDFLAGS:+linkflags="$LDFLAGS"}
+
%if %build_docs
cd doc