File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,24 @@ EXFAT_SOURCE = fuse-exfat-$(EXFAT_VERSION).tar.gz
1010EXFAT_DEPENDENCIES = host-scons libfuse
1111EXFAT_LICENSE = GPLv3+
1212EXFAT_LICENSE_FILES = COPYING
13+ EXFAT_CFLAGS = $(TARGET_CFLAGS ) -std=c99
14+
15+ # The endianness handling functions in platform.h are protected behind
16+ # ifdef __GLIBC__ which musl doesn't define even though it does
17+ # provide the endianness handling interface. Work around it by
18+ # ensuring __GLIBC__ is defined.
19+ ifeq ($(BR2_TOOLCHAIN_USES_MUSL ) ,y)
20+ EXFAT_CFLAGS += -D__GLIBC__
21+ endif
1322
1423define EXFAT_BUILD_CMDS
1524 (cd $(@D ) ; \
16- $(TARGET_CONFIGURE_OPTS ) CCFLAGS="$(TARGET_CFLAGS ) -std=c99 " $(SCONS ) )
25+ $(TARGET_CONFIGURE_OPTS ) CCFLAGS="$(EXFAT_CFLAGS ) " $(SCONS ) )
1726endef
1827
1928define EXFAT_INSTALL_TARGET_CMDS
2029 (cd $(@D ) ; \
21- $(TARGET_CONFIGURE_OPTS ) CCFLAGS="$(TARGET_CFLAGS ) -std=c99 " $(SCONS ) \
30+ $(TARGET_CONFIGURE_OPTS ) CCFLAGS="$(EXFAT_CFLAGS ) " $(SCONS ) \
2231 DESTDIR=$(TARGET_DIR ) /usr/sbin install)
2332endef
2433
You can’t perform that action at this time.
0 commit comments