forked from bitcoin-core/gui-qml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: fix cflags passing for mingw miniupnpc
Cherry-pick of a patch upstreamed to miniupnpc, see here: miniupnp/miniupnp#619.
- Loading branch information
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
commit fec515a7ac9991a0ee91068fda046b54b191155e | ||
Author: fanquake <[email protected]> | ||
Date: Wed Jul 27 15:52:37 2022 +0100 | ||
|
||
build: respect CFLAGS in makefile.mingw | ||
|
||
Similar to the other Makefile. | ||
|
||
Cherry-pick of https://github.com/miniupnp/miniupnp/pull/619. | ||
|
||
diff --git a/Makefile.mingw b/Makefile.mingw | ||
index 2bff7bd..88430d2 100644 | ||
--- a/Makefile.mingw | ||
+++ b/Makefile.mingw | ||
@@ -19,7 +19,7 @@ else | ||
RM = rm -f | ||
endif | ||
#CFLAGS = -Wall -g -DDEBUG -D_WIN32_WINNT=0X501 | ||
-CFLAGS = -Wall -W -Wstrict-prototypes -Os -DNDEBUG -D_WIN32_WINNT=0X501 | ||
+CFLAGS ?= -Wall -W -Wstrict-prototypes -Os -DNDEBUG -D_WIN32_WINNT=0X501 | ||
LDLIBS = -lws2_32 -liphlpapi | ||
# -lwsock32 | ||
# -liphlpapi is needed for GetBestRoute() and GetIpAddrTable() |