Move CFLAGS/CXXFLAGS/CPPFLAGS handling outside of %configure
... to make it easier to add py3 support in the following commit.
This commit is contained in:
parent
8df2858285
commit
9373cfb458
11
brltty.spec
11
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
|
||||
|
Loading…
Reference in New Issue
Block a user