summaryrefslogtreecommitdiffstats
path: root/src/libarchive.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/libarchive.mk')
-rw-r--r--src/libarchive.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libarchive.mk b/src/libarchive.mk
index dd4d2b5..453c520 100644
--- a/src/libarchive.mk
+++ b/src/libarchive.mk
@@ -19,6 +19,8 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
+ $(SED) -i '1i#ifndef LIBARCHIVE_STATIC\n#define LIBARCHIVE_STATIC\n#endif' -i '$(1)/libarchive/archive.h'
+ $(SED) -i '1i#ifndef LIBARCHIVE_STATIC\n#define LIBARCHIVE_STATIC\n#endif' -i '$(1)/libarchive/archive_entry.h'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)' \