Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

external: update miniupnpc 2.2.8 #9367

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

0xFFFC0000
Copy link
Collaborator

@0xFFFC0000 0xFFFC0000 commented Jun 13, 2024

Fix and improve existing CMake script.

Fixes: #9359

Related: #9366

1. LINKS flag, will link publicly the libraries provided.
2. PRIVATE_LINKS flag, will link privately the libraries provided.
3. INCLUDES flag, will includes publicly the dirs provided.
4. PRIVATE_INCLUDES flag, will include privately the libraries provided.
@nahuhh
Copy link

nahuhh commented Aug 11, 2024

Fix and improve existing CMake script.

Fixes: #9359

Requires: #9366

9366 is included in this PR. Can close 9366

@wizeguyy
Copy link

@0xFFFC0000 any update on this?

@0xFFFC0000
Copy link
Collaborator Author

0xFFFC0000 commented Aug 20, 2024

@0xFFFC0000 any update on this?

It is ready, has been since its release. Needs reviews.

@@ -35,8 +35,13 @@
# ...except for FreeBSD, because FreeBSD is a special case that doesn't play well with
# others.

if(NOT MSVC)
add_compile_options(-D_GNU_SOURCE)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this needed since we add _GNU_SOURCE to compile options in the root CMakeLists.txt?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, since we add it to CMAKE_C_FLAGS [1] and it does not pass it to projects added via add_subdirectory. It fixes this build issue [2].

  1. https://github.com/monero-project/monero/blob/a1dc85c5373a30f14aaf7dcfdd95f5a7375d3623/CMakeLists.txt#L910C7-L910C20
  2. Compilation errors on gcc 14.1.1 #9359

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compilation errors on gcc 14.1.1
5 participants