Skip to content

Conversation

@van-orton
Copy link

Description

  • synced code fixes;
  • changes some hashing places to Keccak to remain compatible with current BGL chain;
  • core binaries are now building and able to sync successfully;

Copy link
Owner

@janus janus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

crypto_sha3_libBGL_crypto_sha3_a_CPPFLAGS = $(AM_CPPFLAGS)
crypto_sha3_libBGL_crypto_sha3_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)

crypto_libBGL_crypto_base_a_CPPFLAGS = $(AM_CPPFLAGS)
crypto_libBGL_crypto_base_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)

Shouldn't the second = be replaced by +=? And the above assignments are same, shouldn't one serve?

@van-orton
Copy link
Author

AFAIK, in such statements in makefile as
crypto_sha3_libBGL_crypto_sha3_a_CPPFLAGS and
crypto_libBGL_crypto_base_a_CPPFLAGS
that prefixed path matters and serves for generation of makefiles, so there's some duplications occuring but the 'variable name' is important, below there is similar construct:
crypto_libBGL_crypto_sse41_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
crypto_libBGL_crypto_sse41_a_CPPFLAGS = $(AM_CPPFLAGS)
I am not super-experienced with autogen tooling, so may be some optimization could be done there. Looks in https://github.com/bitcoin/bitcoin/blob/master/src/Makefile.am similar approach is used.

@janus
Copy link
Owner

janus commented Jan 27, 2021

AFAIK, in such statements in makefile as
crypto_sha3_libBGL_crypto_sha3_a_CPPFLAGS and
crypto_libBGL_crypto_base_a_CPPFLAGS
that prefixed path matters and serves for generation of makefiles, so there's some duplications occuring but the 'variable name' is important, below there is similar construct:
crypto_libBGL_crypto_sse41_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
crypto_libBGL_crypto_sse41_a_CPPFLAGS = $(AM_CPPFLAGS)
I am not super-experienced with autogen tooling, so may be some optimization could be done there. Looks in https://github.com/bitcoin/bitcoin/blob/master/src/Makefile.am similar approach is used.

Okay....thanks

@janus janus merged commit 98d0571 into janus:j_week_6 Jan 27, 2021
@wu-emma wu-emma deleted the sync_fixes branch March 25, 2024 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants