[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.1, Thu Mar 15 02:49:25 2018 UTC (2 years, 4 months ago) by khorben
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1

Import py-pyvex version 7.8.2.21 from wip

VEX is an architecture-agnostic, side-effects-free representation of a number
of target machine languages. It abstracts machine code into a representation
designed to make program analysis easier.

PyVEX exposes VEX into Python.

It is maintained by the angr organization on GitHub.

$NetBSD: patch-pyvex__c_Makefile,v 1.1 2018/03/15 02:49:25 khorben Exp $

Add support for NetBSD.
Correct the syntax for GCC in C99 mode.

--- pyvex_c/Makefile.orig	2018-02-21 22:03:16.000000000 +0000
+++ pyvex_c/Makefile
@@ -9,6 +9,11 @@ ifeq ($(UNAME), Linux)
 	STATIC_LIBRARY_FILE=libpyvex.a
 	LDFLAGS=-Wl,-soname,$(LIBRARY_FILE)
 endif
+ifeq ($(UNAME), NetBSD)
+	LIBRARY_FILE=libpyvex.so
+	STATIC_LIBRARY_FILE=libpyvex.a
+	LDFLAGS=-Wl,-soname,$(LIBRARY_FILE)
+endif
 ifeq ($(findstring MINGW,$(UNAME)), MINGW)
 	LIBRARY_FILE=pyvex.dll
 	STATIC_LIBRARY_FILE=libpyvex.a
@@ -18,7 +23,7 @@ endif
 CC=gcc
 AR=ar
 INCFLAGS=-I $(VEX_INCLUDE_PATH)
-CFLAGS=-g -O2 -shared -fPIC --std=c99 $(INCFLAGS)
+CFLAGS=-g -O2 -shared -fPIC -std=c99 $(INCFLAGS)
 
 OBJECTS=pyvex.o logging.o