summaryrefslogtreecommitdiff
path: root/package/lzip
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-24 22:17:42 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-24 22:27:24 +0200
commitbe43d5ab3f911789418725072c3bcea83c64f2e4 (patch)
treea25e35d73e9a54a41630e4f4087c953c5403e421 /package/lzip
parentb54a88d64f68b7b0df85887bdc27967e6ee1a678 (diff)
lzip: fix hostbuild
Diffstat (limited to 'package/lzip')
-rw-r--r--package/lzip/Makefile2
-rw-r--r--package/lzip/patches/patch-configure17
2 files changed, 19 insertions, 0 deletions
diff --git a/package/lzip/Makefile b/package/lzip/Makefile
index 0dc46da3c..b2a69641e 100644
--- a/package/lzip/Makefile
+++ b/package/lzip/Makefile
@@ -20,6 +20,8 @@ include $(ADK_TOPDIR)/mk/package.mk
$(eval $(call HOST_template,LZIP,lzip,$(PKG_VERSION)-${PKG_RELEASE}))
$(eval $(call PKG_template,LZIP,lzip,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+HOST_LDFLAGS+= -static-libstdc++
+
lzip-install:
$(INSTALL_DIR) $(IDIR_LZIP)/usr/bin
$(INSTALL_BIN) $(WRKINST)/usr/bin/lzip $(IDIR_LZIP)/usr/bin
diff --git a/package/lzip/patches/patch-configure b/package/lzip/patches/patch-configure
new file mode 100644
index 000000000..3ac80460f
--- /dev/null
+++ b/package/lzip/patches/patch-configure
@@ -0,0 +1,17 @@
+--- lzip-1.17.orig/configure 2015-07-09 18:58:33.000000000 +0200
++++ lzip-1.17/configure 2016-09-24 13:07:38.493476268 +0200
+@@ -20,10 +20,10 @@ bindir='$(exec_prefix)/bin'
+ datarootdir='$(prefix)/share'
+ infodir='$(datarootdir)/info'
+ mandir='$(datarootdir)/man'
+-CXX=g++
+-CPPFLAGS=
+-CXXFLAGS='-Wall -W -O2'
+-LDFLAGS=
++CXX?=g++
++CPPFLAGS?=
++CXXFLAGS?='-Wall -W -O2'
++LDFLAGS?=
+
+ # checking whether we are using GNU C++.
+ ${CXX} --version > /dev/null 2>&1