]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Makefile.am: optimized the abi-check configure step
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 7 May 2018 06:12:12 +0000 (08:12 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 9 May 2018 19:44:33 +0000 (21:44 +0200)
Also ensured that the same build flags are applied in both builds
for ABI checking.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
.gitlab-ci.yml
Makefile.am

index 841cab3557cbbe66a0ae23d220ae253421ff28b0..d78167324b53bec96efe51a90c1c3e1ad4a4240e 100644 (file)
@@ -7,7 +7,7 @@ stages:
 # name to allow expiration of old caches.
 
 cache:
-  key: "$CI_JOB_NAME-ver3"
+  key: "$CI_JOB_NAME-ver4"
   paths:
     - cache/
 
@@ -61,7 +61,7 @@ abi-coverage.Fedora:
   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
index 2269637acdec960a24b636357f9fd9f4d983075d..8638bd8501759f81a0396388f6b3cc3515912937 100644 (file)
@@ -76,8 +76,11 @@ ABIVER=$(shell git for-each-ref --sort=taggerdate --format '%(refname)' refs/tag
        @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