[BACK]Return to patch-pyvex__c_Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / py-pyvex / patches

File: [cvs.NetBSD.org] / pkgsrc / devel / py-pyvex / patches / patch-pyvex__c_Makefile (download)

Revision 1.3, Tue Aug 18 20:24:58 2020 UTC (22 months, 1 week ago) by riastradh
Branch: MAIN
CVS Tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3
Changes since 1.2: +6 -12 lines

Update py-angr to 8.20.7.27, along with associated packages.

Version is consolidated into devel/py-angr/version.mk now so the next
person to come along will know what else needs to be updated.

devel/py-pyvex distfiles are still kinda kludgey, and devel/py-angr's
tests don't run without binary samples that I got bored trying to
incorporate.

$NetBSD: patch-pyvex__c_Makefile,v 1.3 2020/08/18 20:24:58 riastradh Exp $

Append to LDFLAGS rather than replacing it.

--- pyvex_c/Makefile.orig	2020-07-28 02:00:38.000000000 +0000
+++ pyvex_c/Makefile
@@ -2,22 +2,22 @@ UNAME := $(shell uname)
 ifeq ($(UNAME), Darwin)
 	LIBRARY_FILE=libpyvex.dylib
 	STATIC_LIBRARY_FILE=libpyvex.a
-	LDFLAGS=-Wl,-install_name,@rpath/$(LIBRARY_FILE)
+	LDFLAGS+=-Wl,-install_name,@rpath/$(LIBRARY_FILE)
 endif
 ifeq ($(UNAME), Linux)
 	LIBRARY_FILE=libpyvex.so
 	STATIC_LIBRARY_FILE=libpyvex.a
-	LDFLAGS=-Wl,-soname,$(LIBRARY_FILE)
+	LDFLAGS+=-Wl,-soname,$(LIBRARY_FILE)
 endif
 ifeq ($(UNAME), NetBSD)
 	LIBRARY_FILE=libpyvex.so
 	STATIC_LIBRARY_FILE=libpyvex.a
-	LDFLAGS=-Wl,-soname,$(LIBRARY_FILE)
+	LDFLAGS+=-Wl,-soname,$(LIBRARY_FILE)
 endif
 ifeq ($(findstring MINGW,$(UNAME)), MINGW)
 	LIBRARY_FILE=pyvex.dll
 	STATIC_LIBRARY_FILE=libpyvex.a
-	LDFLAGS=
+	LDFLAGS+=
 endif
 
 # deeply evil