1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-15 11:53:59 +02:00
openwrt-packages/libs/libatasmart/patches/001-fix-cross-compile.patch
Florian Eckert 87e52cf180 libatasmart: initial checkin
This library is required by the smart plugin of the collectd.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-03-16 13:23:08 +01:00

44 lines
895 B
Diff

--- a/configure.ac
+++ b/configure.ac
@@ -114,7 +114,6 @@ dnl###################################
AC_CONFIG_FILES([
Makefile
-strpool/Makefile
libatasmart.pc
])
AC_OUTPUT
--- a/Makefile.am
+++ b/Makefile.am
@@ -22,7 +22,6 @@ AM_LDFLAGS = $(GCLDFLAGS)
dist_doc_DATA = README
EXTRA_DIST = \
- autogen.sh \
LGPL \
README \
atasmart.c \
@@ -47,9 +46,6 @@ EXTRA_DIST = \
blob-examples/WDC_WD5000AAKS--00TMA0-12.01C01 \
vala/atasmart.vapi
-# build the strpool tool first
-SUBDIRS = strpool .
-
CLEANFILES = atasmart.strpool.c
MAINTAINERCLEANFILES =
@@ -94,10 +90,7 @@ libatasmart_la_CFLAGS = \
BUILT_SOURCES = \
atasmart.strpool.c
-strpool/strpool:
- $(MAKE) -C strpool strpool
-
-atasmart.strpool.c: atasmart.c strpool/strpool
- $(top_builddir)/strpool/strpool $< $@
+atasmart.strpool.c: atasmart.c
+ $(STAGING_DIR_HOSTPKG)/bin/strpool $< $@
ACLOCAL_AMFLAGS = -I m4