summaryrefslogtreecommitdiff
path: root/package/lzip
diff options
context:
space:
mode:
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