[OpenWrt-Devel] [PATCH 1/1] Fix bridge-utils file offset handling

Nikolay Martynov mar.kolya at gmail.com
Mon May 11 21:48:35 EDT 2015


Make sure brctl build uses appropriate defines (_FILE_OFFSET_BITS) that match uClibc settings.
Without this patch running brctl leads to 'unresolved alphasort symbol' message.

Signed-off-by: Nikolay Martynov <mar.kolya at gmail.com>
---
 net/bridge-utils/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/bridge-utils/Makefile b/net/bridge-utils/Makefile
index ad95b87..10e44c5 100644
--- a/net/bridge-utils/Makefile
+++ b/net/bridge-utils/Makefile
@@ -30,6 +30,8 @@ define Package/bridge/description
  form a larger network.
 endef
 
+TARGET_CPPFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
+
 CONFIGURE_ARGS += \
 	--with-linux-headers="$(LINUX_DIR)" \
 
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list