diff --git a/libs/dahdi-tools/Makefile b/libs/dahdi-tools/Makefile index 14444ef..dc66764 100644 --- a/libs/dahdi-tools/Makefile +++ b/libs/dahdi-tools/Makefile @@ -50,15 +50,6 @@ endef CONFIGURE_ARGS+=--disable-silent-rules -define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) \ - HOSTCC="$(HOSTCC)" \ - CROSS_COMPILE="$(TARGET_CROSS)" \ - CFLAGS="$(TARGET_CFLAGS)" \ - CPPFLAGS="$(TARGET_CPPFLAGS)" \ - dahdi_cfg dahdi_monitor dahdi_scan dahdi_speed dahdi_test fxotune -endef - define Build/InstallDev $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_BUILD_DIR)/.libs/*.so* $(1)/usr/lib/ diff --git a/libs/dahdi-tools/patches/010-fix-non-glibc-builds.patch b/libs/dahdi-tools/patches/010-fix-non-glibc-builds.patch new file mode 100644 index 0000000..d60e767 --- /dev/null +++ b/libs/dahdi-tools/patches/010-fix-non-glibc-builds.patch @@ -0,0 +1,26 @@ +--- a/xpp/xtalk/debug.c ++++ b/xpp/xtalk/debug.c +@@ -26,7 +26,9 @@ + #include + #include + #include ++#ifdef __GLIBC__ + #include ++#endif + #include + #include + +@@ -61,6 +63,7 @@ void dump_packet(int loglevel, int mask, + /* from glibc info(1) */ + void print_backtrace(FILE *fp) + { ++#ifdef __GLIBC__ + void *array[10]; + size_t size; + char **strings; +@@ -71,4 +74,5 @@ void print_backtrace(FILE *fp) + for (i = 0; i < size; i++) + fprintf(fp, "%s\n", strings[i]); + free(strings); ++#endif + } diff --git a/libs/dahdi-tools/patches/020-fix-undefined-reference-to-get_ver.patch b/libs/dahdi-tools/patches/020-fix-undefined-reference-to-get_ver.patch new file mode 100644 index 0000000..f09fcad --- /dev/null +++ b/libs/dahdi-tools/patches/020-fix-undefined-reference-to-get_ver.patch @@ -0,0 +1,11 @@ +--- a/xpp/echo_loader.c ++++ b/xpp/echo_loader.c +@@ -564,7 +564,7 @@ UINT32 Oct6100UserDriverReadBurstApi(tPO + return cOCT6100_ERR_OK; + } + +-inline int get_ver(struct astribank *astribank) ++static inline int get_ver(struct astribank *astribank) + { + return spi_send(astribank, 0, 0, 1, 1); + }