Skip to content

Instantly share code, notes, and snippets.

@neheb
Created March 28, 2019 00:23
Show Gist options
  • Save neheb/eacb3dbec32357f2be9cec3b1ceeda9c to your computer and use it in GitHub Desktop.
Save neheb/eacb3dbec32357f2be9cec3b1ceeda9c to your computer and use it in GitHub Desktop.
diff --git a/utils/gddrescue/Makefile b/utils/gddrescue/Makefile
index 9cce4ef15..230a1feeb 100644
--- a/utils/gddrescue/Makefile
+++ b/utils/gddrescue/Makefile
@@ -5,19 +5,21 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=gddrescue
-PKG_VERSION:=1.22
+PKG_VERSION:=1.23
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.xz
PKG_SOURCE_URL:=http://http.debian.net/debian/pool/main/g/$(PKG_NAME)
-PKG_HASH:=a715488f77ae201099ff99360baf7d909bce0fa6c43588e076e830fec93d09f1
+PKG_HASH:=5831d7e24070bc700d8f22deaeec56af1149392ce30ae67254096eaf8c9169ab
PKG_MAINTAINER:=Lucian Cristian <[email protected]>
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=LICENSE
PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
+include $(INCLUDE_DIR)/uclibc++.mk
include $(INCLUDE_DIR)/package.mk
define Package/gddrescue
@@ -25,7 +27,7 @@ define Package/gddrescue
CATEGORY:=Utilities
TITLE:=Data recovery tool
URL:=https://www.gnu.org/software/ddrescue/
- DEPENDS:= +libstdcpp
+ DEPENDS:=$(CXX_DEPENDS)
endef
define Package/gddrescue/description
@@ -34,8 +36,11 @@ define Package/gddrescue/description
the good parts first in case of read errors.
endef
-MAKE_FLAGS += \
- prefix="/usr"
+CONFIGURE_ARGS += \
+ CXX="$(TARGET_CXX)" \
+ CPPFLAGS="$(TARGET_CPPFLAGS)" \
+ CXXFLAGS="$(TARGET_CXXFLAGS)" \
+ LDFLAGS="$(TARGET_LDFLAGS)"
define Package/gddrescue/install
$(INSTALL_DIR) $(1)/usr/sbin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment