Skip to content

Commit

Permalink
update osx to build clamlib_util.a first as well
Browse files Browse the repository at this point in the history
  • Loading branch information
l0rdicon committed Dec 20, 2019
1 parent 7612a12 commit fbba69c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions contrib/gitian-descriptors/gitian-osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ script: |
# Create the release tarball using (arbitrarily) the first host
./autogen.sh
CONFIG_SITE=${BASEPREFIX}/`echo "${HOSTS}" | awk '{print $1;}'`/share/config.site ./configure --prefix=/
make src/libclam_util.a
make dist
SOURCEDIST=`echo clam-*.tar.gz`
DISTNAME=`echo ${SOURCEDIST} | sed 's/.tar.*//'`
Expand All @@ -125,6 +126,7 @@ script: |
tar --strip-components=1 -xf ../$SOURCEDIST
CONFIG_SITE=${BASEPREFIX}/${i}/share/config.site ./configure --prefix=/ --disable-ccache --disable-maintainer-mode --disable-dependency-tracking ${CONFIGFLAGS}
make ${MAKEOPTS} src/libclam_util.a
make ${MAKEOPTS}
make install-strip DESTDIR=${INSTALLPATH}
Expand Down
9 changes: 7 additions & 2 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -447,17 +447,22 @@ if GLIBC_BACK_COMPAT
endif


if TARGET_WINDOWS
if TARGET_WINDOWS
libclamconsensus_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined $(RELDFLAGS) $(LIBCLAM_UTIL)
libclamconsensus_la_LIBADD = $(LIBSECP256K1) $(CRYPTO_LIBS) $(BOOST_LIBS)
libclamconsensus_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(builddir)/obj -I$(srcdir)/secp256k1/include -DBUILD_CLAM_INTERNAL $(SSL_CFLAGS) $(BOOST_CPPFLAGS)
else
if TARGET_DARWIN
libclamconsensus_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined $(RELDFLAGS) $(LIBCLAM_UTIL)
libclamconsensus_la_LIBADD = $(LIBSECP256K1) $(CRYPTO_LIBS) $(BOOST_LIBS)
libclamconsensus_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(builddir)/obj -I$(srcdir)/secp256k1/include -DBUILD_CLAM_INTERNAL $(SSL_CFLAGS) $(BOOST_CPPFLAGS)
else
libclamconsensus_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined $(RELDFLAGS)
libclamconsensus_la_LIBADD = $(LIBSECP256K1) $(CRYPTO_LIBS)
libclamconsensus_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(builddir)/obj -I$(srcdir)/secp256k1/include -DBUILD_CLAM_INTERNAL $(SSL_CFLAGS)
endif
endif
libclamconsensus_la_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)

endif
#

Expand Down

0 comments on commit fbba69c

Please sign in to comment.