Building Environment: Set ARFLAGS to cr #10766

pull ReneNyffenegger wants to merge 1 commits into bitcoin:master from ReneNyffenegger:ARFLAGS changing 1 files +7 −0
  1. ReneNyffenegger commented at 3:00 PM on July 7, 2017: contributor

    Override the default of ARFLAGS of cru to cr.

    When building, ar produces a warning for each archive, for example

      AR       libbitcoin_server.a
    /usr/bin/ar: `u' modifier ignored since `D' is the default (see `U')
    
    

    Since u is the default anyway, it cannot hurt to remove it.

  2. fanquake added the label Build system on Jul 7, 2017
  3. practicalswift commented at 8:08 PM on July 7, 2017: contributor

    Concept ACK

    Nit: I don't think that u is the default - IIRC it is just that u optimization has no effect when running in deterministic mode (D), which is now the default.

  4. theuni commented at 11:30 PM on July 7, 2017: member

    Concept ACK. Though, please don't hard-code it to "cr" in case the change causes trouble for some toolchain. Let's use AC_ARG_VAR instead, so that it may be overridden if necessary:

    AC_ARG_VAR(ARFLAGS, [flags passed to the archiver])
    if test "x${ARFLAGS+set}" != "xset"; then
      ARFLAGS="cr"
    fi
    
  5. ReneNyffenegger commented at 12:47 PM on July 10, 2017: contributor

    I agree / have created a hopefully improved pull request: 10782

  6. theuni commented at 7:02 PM on July 10, 2017: member

    Thanks. utACK after squash.

  7. jonasschnelli commented at 7:34 AM on July 13, 2017: contributor

    utACK bb4bb93216c47276b16e89bd0ba2632c801caddf @ReneNyffenegger: can you squash the commits? Your first commit (bb4bb93216c47276b16e89bd0ba2632c801caddf) has "unrecoggnized author".

  8. ReneNyffenegger force-pushed on Jul 13, 2017
  9. ReneNyffenegger commented at 12:15 PM on July 13, 2017: contributor

    I've squashed to commits / Hope the user is now recognized.

  10. in configure.ac:24 in 245ceb6f8c outdated
      18 | @@ -19,6 +19,12 @@ BITCOIN_GUI_NAME=bitcoin-qt
      19 |  BITCOIN_CLI_NAME=bitcoin-cli
      20 |  BITCOIN_TX_NAME=bitcoin-tx
      21 |  
      22 | +dnl Unless the user specified ARFLAGS, force it to be cr
      23 | +AC_ARG_VAR(ARFLAGS, [Flags for the archiver, defaults to <cr> if not set])
      24 | +if test "x${ARFLAGS}" != "xset"; then
    


    TheBlueMatt commented at 8:24 PM on July 14, 2017:

    Do you need the x${ARFLAGS+set} syntax that we use elsewhere?

  11. in configure.ac:25 in 245ceb6f8c outdated
      18 | @@ -19,6 +19,12 @@ BITCOIN_GUI_NAME=bitcoin-qt
      19 |  BITCOIN_CLI_NAME=bitcoin-cli
      20 |  BITCOIN_TX_NAME=bitcoin-tx
      21 |  
      22 | +dnl Unless the user specified ARFLAGS, force it to be cr
      23 | +AC_ARG_VAR(ARFLAGS, [Flags for the archiver, defaults to <cr> if not set])
      24 | +if test "x${ARFLAGS}" != "xset"; then
      25 | +  ARFLAGS="cr"
    


    TheBlueMatt commented at 8:25 PM on July 14, 2017:

    Maybe add D to the default here, so that we're consistent even on platforms with a strange ar build?

  12. TheBlueMatt commented at 8:25 PM on July 14, 2017: member

    Concept ACK, though I tested and overriding doesnt work.

  13. ReneNyffenegger force-pushed on Jul 15, 2017
  14. ReneNyffenegger commented at 2:43 PM on July 15, 2017: contributor

    overriding didn't work.... because I goofed up when I manually tried to merge two branches: I had if test "x${ARFLAGS}"... instead of if test "x${ARFLAGS+set}"...

    With the fix, I've also added the D flag

  15. ReneNyffenegger commented at 4:51 PM on July 15, 2017: contributor

    Apparently, the D flag is not liked in the Darwin environment.

  16. TheBlueMatt commented at 4:59 PM on July 15, 2017: member

    Heh, ok, just leave it as cr I suppose.

  17. ReneNyffenegger force-pushed on Jul 15, 2017
  18. ReneNyffenegger force-pushed on Jul 15, 2017
  19. ReneNyffenegger commented at 7:53 PM on July 15, 2017: contributor

    I have removed the D flag again. Now, I have also commit 816aa59. I don't know why this is, if I should remove it, and how I could remove it.

  20. practicalswift commented at 8:17 PM on July 15, 2017: contributor

    @ReneNyffenegger Please do:

    git rebase -i HEAD~2
    # remove the line with "Fix multi_rpc test …"
    git push -f
    
  21. ReneNyffenegger force-pushed on Jul 15, 2017
  22. ReneNyffenegger commented at 8:21 PM on July 15, 2017: contributor

    done rebase.

  23. practicalswift commented at 8:23 PM on July 15, 2017: contributor

    utACK 517bfb174a5affc426d8eeb008cb42c49b8f59a9

  24. Use AC_ARG_VAR to set ARFLAGS.
    The user can set ARFLAGS in the ./configure step with
      ./configure ARFLAGS=...
    If he chooses not to do so, ARFLAGS will be set to cr.
    912da1dcc8
  25. ReneNyffenegger force-pushed on Jul 15, 2017
  26. TheBlueMatt commented at 6:36 PM on July 16, 2017: member

    ACK 912da1dcc8e52228582f36b0010b498ebc76754b. We'll need to do something about similar warnings in leveldb and secp256k1, but those will need to be submitted separately upstream.

  27. sipa commented at 6:51 PM on July 16, 2017: member

    utACK 912da1dcc8e52228582f36b0010b498ebc76754b

  28. practicalswift commented at 6:54 PM on July 16, 2017: contributor

    utACK 912da1d

  29. sipa merged this on Jul 16, 2017
  30. sipa closed this on Jul 16, 2017

  31. sipa referenced this in commit b4d03be3ca on Jul 16, 2017
  32. zkbot referenced this in commit 75604363cc on Dec 1, 2017
  33. zkbot referenced this in commit 6aef4033a7 on Dec 1, 2017
  34. zkbot referenced this in commit 83af270002 on Dec 15, 2017
  35. kotodev referenced this in commit c8a979fc92 on Jan 25, 2018
  36. renium9 referenced this in commit 23640da445 on Feb 6, 2018
  37. PastaPastaPasta referenced this in commit 5d1e068285 on Jul 6, 2019
  38. PastaPastaPasta referenced this in commit 6815ce7df8 on Jul 8, 2019
  39. PastaPastaPasta referenced this in commit 832292c4c2 on Jul 9, 2019
  40. PastaPastaPasta referenced this in commit 75c0020663 on Jul 11, 2019
  41. PastaPastaPasta referenced this in commit d4b6001343 on Jul 13, 2019
  42. PastaPastaPasta referenced this in commit 3885f5e770 on Jul 13, 2019
  43. PastaPastaPasta referenced this in commit 9243b65ccc on Jul 17, 2019
  44. PastaPastaPasta referenced this in commit 0eebff991e on Jul 17, 2019
  45. PastaPastaPasta referenced this in commit d7057d429e on Jul 18, 2019
  46. barrystyle referenced this in commit 95ef2e4a0d on Jan 22, 2020
  47. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-29 03:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me