Fix test compilation to allow correct gating
Related: rhbz#2032923 Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
This commit is contained in:
parent
89e3221801
commit
9c6a8bee13
@ -1,6 +1,6 @@
|
|||||||
Name: librdkafka
|
Name: librdkafka
|
||||||
Version: 1.6.1
|
Version: 1.6.1
|
||||||
Release: 101%{?dist}
|
Release: 102%{?dist}
|
||||||
Summary: The Apache Kafka C library
|
Summary: The Apache Kafka C library
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -87,6 +87,10 @@ find %{buildroot} -name '*-static.pc' -delete -print
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 08 2022 Sergio Arroutbi <sarroutb@redhat.com> - 1.6.1-102
|
||||||
|
- Changes for tests to compile and run appropriately
|
||||||
|
Related: rhbz#2032923
|
||||||
|
|
||||||
* Mon Feb 07 2022 Sergio Arroutbi <sarroutb@redhat.com> - 1.6.1-101
|
* Mon Feb 07 2022 Sergio Arroutbi <sarroutb@redhat.com> - 1.6.1-101
|
||||||
- Add missing tests
|
- Add missing tests
|
||||||
Related: rhbz#2032923
|
Related: rhbz#2032923
|
||||||
|
@ -19,8 +19,8 @@ LIBCFLAGS="$(pkg-config rdkafka --libs --cflags)"
|
|||||||
LIBCXXFLAGS="$(pkg-config rdkafka++ --libs --cflags)"
|
LIBCXXFLAGS="$(pkg-config rdkafka++ --libs --cflags)"
|
||||||
|
|
||||||
# build target using distribution-specific flags
|
# build target using distribution-specific flags
|
||||||
gcc -std=c11 $CFLAGS $LDFLAGS $LIBCFLAGS -o $C_BINARY $C_TEST_TARGET
|
gcc -std=c11 $CFLAGS $LDFLAGS -o $C_BINARY $C_TEST_TARGET $LIBCFLAGS
|
||||||
g++ -std=c++11 $CXXFLAGS $LDFLAGS $LIBCXXFLAGS -o $CXX_BINARY $CXX_TEST_TARGET
|
g++ -std=c++11 $CXXFLAGS $LDFLAGS -o $CXX_BINARY $CXX_TEST_TARGET $LIBCXXFLAGS
|
||||||
|
|
||||||
|
|
||||||
# test that target exists
|
# test that target exists
|
||||||
|
Loading…
Reference in New Issue
Block a user