perl-device-serialport: fix build on macos
./configure script detects macos specific system headers (IOKit/serial/ioss.h and sys/ttycom.h) that are not available during compile time. There is no way to pass ac_cv_* vars to ./configure script due to perl wrappers To fix this issue, fake(empty) headers provided during compile time if build host is MacOS Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
This commit is contained in:
parent
0e6a33a3a4
commit
30f4e26d16
1 changed files with 13 additions and 0 deletions
|
@ -41,7 +41,20 @@ define Build/Configure
|
||||||
$(call perlmod/Configure,,)
|
$(call perlmod/Configure,,)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
MOD_CFLAGS_PERL += $(if $(CONFIG_HOST_OS_MACOS),-I$(PKG_BUILD_DIR)/macos_compat,)
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_HOST_OS_MACOS),y)
|
||||||
|
#Zeroize macos specific system headers found by ./configure
|
||||||
|
mkdir -p $(PKG_BUILD_DIR)/macos_compat
|
||||||
|
mkdir -p $(PKG_BUILD_DIR)/macos_compat/sys
|
||||||
|
mkdir -p $(PKG_BUILD_DIR)/macos_compat/IOKit
|
||||||
|
mkdir -p $(PKG_BUILD_DIR)/macos_compat/IOKit/serial
|
||||||
|
echo '' > $(PKG_BUILD_DIR)/macos_compat/sys/ttycom.h
|
||||||
|
echo '' > $(PKG_BUILD_DIR)/macos_compat/IOKit/serial/ioss.h
|
||||||
|
endif
|
||||||
|
|
||||||
$(call perlmod/Compile,,)
|
$(call perlmod/Compile,,)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue