Update build flags

This commit is contained in:
Josef Řídký 2022-06-29 09:37:15 +02:00
parent cb344eef86
commit 5c37322a57

View File

@ -92,6 +92,7 @@ rm -rf converter/other/jpeg2000/libjasper/
rm -rf converter/other/jbig/libjbig/ rm -rf converter/other/jbig/libjbig/
%build %build
%set_build_flags
./configure <<EOF ./configure <<EOF
@ -118,9 +119,9 @@ TOP=`pwd`
make \ make \
CC="%{__cc}" \ CC="%{__cc}" \
LDFLAGS="$RPM_LD_FLAGS -L$TOP/pbm -L$TOP/pgm -L$TOP/pnm -L$TOP/ppm" \ LDFLAGS="$LD_FLAGS -L$TOP/pbm -L$TOP/pgm -L$TOP/pnm -L$TOP/ppm" \
CFLAGS="$RPM_OPT_FLAGS -fPIC -flax-vector-conversions -fno-strict-aliasing" \ CFLAGS="$CFLAGS -fPIC -flax-vector-conversions -fno-strict-aliasing" \
CFLAGS_CONFIG="$RPM_OPT_FLAGS" \ CFLAGS_CONFIG="$CFLAGS" \
LADD="-lm" \ LADD="-lm" \
JPEGINC_DIR=%{_includedir} \ JPEGINC_DIR=%{_includedir} \
PNGINC_DIR=%{_includedir} \ PNGINC_DIR=%{_includedir} \
@ -230,6 +231,7 @@ popd
%changelog %changelog
* Tue Jun 28 2022 Josef Ridky <jridky@redhat.com> - 10.99.00-1 * Tue Jun 28 2022 Josef Ridky <jridky@redhat.com> - 10.99.00-1
- New upstream release 10.99.00 (#2068865) - New upstream release 10.99.00 (#2068865)
- Use %%set_build_flags to set environment variables
* Sun Feb 13 2022 Josef Ridky <jridky@redhat.com> - 10.97.00-4 * Sun Feb 13 2022 Josef Ridky <jridky@redhat.com> - 10.97.00-4
- Bump spec for new jasper - Bump spec for new jasper