Also ensured that the same build flags are applied in both builds
for ABI checking.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
# name to allow expiration of old caches.
cache:
- key: "$CI_JOB_NAME-ver3"
+ key: "$CI_JOB_NAME-ver4"
paths:
- cache/
script:
- git submodule update --init --no-fetch
- make autoreconf
- - CFLAGS="-std=c99 -g -Og" dash ./configure --disable-gcc-warnings --cache-file cache/config.cache --prefix=/usr --libdir=/usr/lib64 --enable-code-coverage --disable-non-suiteb-curves --disable-maintainer-mode --disable-doc
+ - CFLAGS="-g -Og" dash ./configure --disable-gcc-warnings --cache-file cache/config.cache --prefix=/usr --libdir=/usr/lib64 --enable-code-coverage --disable-non-suiteb-curves --disable-maintainer-mode --disable-doc
&& make -j$(nproc)
- make abi-check
- make pic-check
@echo "Creating ABI for $(ABIVER)"
cd $(ABI_TMPCLONEDIR) && \
git checkout $(ABIREF) && \
- make autoreconf && CFLAGS="-g -Og" ./configure --disable-doc && \
- $(MAKE) -j$$(nproc) -C gl && $(MAKE) -j$$(nproc) -C lib && $(MAKE) -j$$(nproc) -C libdane
+ make autoreconf && if test -f ../cache/config.cache;then\
+ CFLAGS="-g -Og" ./configure --disable-doc --cache-file ../cache/config.cache;\
+ else\
+ CFLAGS="-g -Og" ./configure --disable-doc;\
+ fi && $(MAKE) -j$$(nproc) -C gl && $(MAKE) -j$$(nproc) -C lib && $(MAKE) -j$$(nproc) -C libdane
touch $@
abi-check: .prev-tag-abi.stamp