[brltty] Move CFLAGS/CXXFLAGS/CPPFLAGS handling outside of %configure

Kalev Lember kalev at fedoraproject.org
Thu Apr 4 14:06:43 UTC 2013


commit 9373cfb4586e1adeb65ca2b59b6a5d85271d033d
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Thu Apr 4 15:41:04 2013 +0200

    Move CFLAGS/CXXFLAGS/CPPFLAGS handling outside of %configure
    
    ... to make it easier to add py3 support in the following commit.

 brltty.spec |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/brltty.spec b/brltty.spec
index ebc24bf..edfb382 100644
--- a/brltty.spec
+++ b/brltty.spec
@@ -147,13 +147,20 @@ This package provides the OCaml binding for BrlAPI.
 %patch4 -p1 -b .loadLibrary
 
 %build
+# Add the openjdk include directories to CPPFLAGS
 for i in -I/usr/lib/jvm/java/include{,/linux}; do
       java_inc="$java_inc $i"
 done
+export CPPFLAGS="$java_inc" CFLAGS="%{optflags} -fno-strict-aliasing" \
+
+export CFLAGS="%{optflags} -fno-strict-aliasing"
+export CXXFLAGS="%{optflags} -fno-strict-aliasing"
+
 # there is no curses packages in BuildRequires, so the package builds
 # without them in mock; let's express this decision explicitly
-%configure CPPFLAGS="$java_inc" CFLAGS="%{optflags} -fno-strict-aliasing" \
-  CXXFLAGS="%{optflags} -fno-strict-aliasing" --disable-stripping --without-curses \
+%configure \
+  --disable-stripping \
+  --without-curses \
 %if %{with_speech_dispatcher}
   --with-speechd=%{_prefix} \
 %endif


More information about the scm-commits mailing list