Ensure CC env variable is set during build

This commit is contained in:
Mikolaj Izdebski 2022-07-18 17:40:03 +02:00
parent 0a46fdf2e3
commit 3707af180c

View File

@ -2,7 +2,7 @@
Name: jansi Name: jansi
Version: 2.4.0 Version: 2.4.0
Release: 4%{?dist} Release: 5%{?dist}
Summary: Generate and interpret ANSI escape sequences in Java Summary: Generate and interpret ANSI escape sequences in Java
License: ASL 2.0 License: ASL 2.0
URL: http://fusesource.github.io/jansi/ URL: http://fusesource.github.io/jansi/
@ -73,6 +73,7 @@ sed -i 's,@LIBDIR@,%{_prefix}/lib,' \
%build %build
%set_build_flags %set_build_flags
CC="${CC:-gcc}"
# Build the native artifact # Build the native artifact
CFLAGS="$CFLAGS -I. -I%{java_home}/include -I%{java_home}/include/linux -fPIC -fvisibility=hidden" CFLAGS="$CFLAGS -I. -I%{java_home}/include -I%{java_home}/include/linux -fPIC -fvisibility=hidden"
cd src/main/native cd src/main/native
@ -103,6 +104,9 @@ cp -p src/main/native/libjansi.so %{buildroot}%{_prefix}/lib/%{name}
%license license.txt %license license.txt
%changelog %changelog
* Mon Jul 18 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.4.0-5
- Ensure CC env variable is set during build
* Thu Jul 14 2022 Marian Koncek <mkoncek@redhat.com> - 2.4.0-4 * Thu Jul 14 2022 Marian Koncek <mkoncek@redhat.com> - 2.4.0-4
- Make javadoc subpackage noarch - Make javadoc subpackage noarch