Browse Source

miniupnpd: Fix compilation under glibc

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 6 years ago
parent
commit
ee4a1c0c09
No known key found for this signature in database GPG Key ID: 36D31CFA845F0E3B
2 changed files with 4 additions and 7 deletions
  1. +1
    -1
      net/miniupnpd/Makefile
  2. +3
    -6
      net/miniupnpd/patches/200-remove-default-cflags.patch

+ 1
- 1
net/miniupnpd/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=miniupnpd
PKG_VERSION:=2.1.20190408
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE_URL:=https://miniupnp.tuxfamily.org/files
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz


+ 3
- 6
net/miniupnpd/patches/200-remove-default-cflags.patch View File

@ -8,16 +8,13 @@
-CFLAGS += -fno-common
-CFLAGS += -fstack-protector -fPIE
-CFLAGS += -D_FORTIFY_SOURCE=2
-CPPFLAGS += -D_GNU_SOURCE
-CFLAGS += -Wall
-CFLAGS += -Wextra -Wstrict-prototypes -Wdeclaration-after-statement
+#CFLAGS += -fno-strict-aliasing
+#CFLAGS += -fno-common
+#CFLAGS += -fstack-protector -fPIE
+#CFLAGS += -D_FORTIFY_SOURCE=2
+#CPPFLAGS += -D_GNU_SOURCE
+#CFLAGS += -Wall
+#CFLAGS += -Wextra -Wstrict-prototypes -Wdeclaration-after-statement
CPPFLAGS += -D_GNU_SOURCE
CFLAGS += -Wall
CFLAGS += -Wextra -Wstrict-prototypes -Wdeclaration-after-statement
#CFLAGS += -Wno-missing-field-initializers
#CFLAGS += -ansi # iptables headers does use typeof which is a gcc extension
-LDFLAGS += -Wl,-z,now -Wl,-z,relro -pie


Loading…
Cancel
Save