diff options
| author | Tianling Shen <cnsztl@immortalwrt.org> | 2023-05-17 20:41:47 +0800 |
|---|---|---|
| committer | Tianling Shen <cnsztl@gmail.com> | 2023-05-18 09:29:06 +0800 |
| commit | 560f93cb25c235493015cdd6c2308c4c1e4d6afa (patch) | |
| tree | 920272f8e5cde72c11e6dda580257742535e0ce9 /multimedia | |
| parent | 4ec0459fd3e6c3d1ef446337671b6da5bb30d006 (diff) | |
xupnpd: fix compilation with musl 1.2.4
musl 1.2.4 deprecated legacy "LFS64" ("large file support") interfaces so
just having _GNU_SOURCE defined is not enough anymore.
Manually pass -D_LARGEFILE64_SOURCE to allow to keep using LFS64 definitions.
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Diffstat (limited to 'multimedia')
| -rw-r--r-- | multimedia/xupnpd/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/multimedia/xupnpd/Makefile b/multimedia/xupnpd/Makefile index f82594cc4..bfc004537 100644 --- a/multimedia/xupnpd/Makefile +++ b/multimedia/xupnpd/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=xupnpd PKG_REV:=e4e542d9b6d0043d470fda283e2cd325bbb91950 PKG_VERSION:=2018-11-20 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/clark15b/xupnpd/tar.gz/$(PKG_REV)? @@ -26,6 +26,10 @@ include $(INCLUDE_DIR)/package.mk LUA_FLAGS:=-llua -lssl -lcrypto +ifneq ($(CONFIG_USE_MUSL),) + TARGET_CFLAGS += -D_LARGEFILE64_SOURCE +endif + define Build/Compile (cd $(PKG_BUILD_DIR)/src; $(TARGET_CC) -v $(LUA_FLAGS) $(TARGET_CFLAGS) -fno-exceptions -fno-rtti -DWITH_URANDOM $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS) -lm -ldl -lcrypt -o xupnpd *.c *.cpp) endef |
