diff options
author | Mateusz Piotrowski <0mp@FreeBSD.org> | 2020-03-03 00:21:33 +0000 |
---|---|---|
committer | Mateusz Piotrowski <0mp@FreeBSD.org> | 2020-03-03 00:21:33 +0000 |
commit | eec85f9b323a246e58b0040ec1d9b4795cdba59a (patch) | |
tree | a9310441852443002f1a6ace3fa969dcd801a7f2 /security/py-pyvex/files/patch-pyvex__c_Makefile | |
parent | graphics/sekrit-twc-zimg: update to 2.9.3 (diff) |
New port: security/py-pyvex
PyVEX provides an interface that translates binary code into the VEX
intermediate represenation (IR).
WWW: https://github.com/angr/pyvex
PR: 244562
Notes
Notes:
svn path=/head/; revision=527657
Diffstat (limited to 'security/py-pyvex/files/patch-pyvex__c_Makefile')
-rw-r--r-- | security/py-pyvex/files/patch-pyvex__c_Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/security/py-pyvex/files/patch-pyvex__c_Makefile b/security/py-pyvex/files/patch-pyvex__c_Makefile new file mode 100644 index 000000000000..b0408ea31318 --- /dev/null +++ b/security/py-pyvex/files/patch-pyvex__c_Makefile @@ -0,0 +1,28 @@ +--- pyvex_c/Makefile.orig 2019-04-16 21:08:49 UTC ++++ pyvex_c/Makefile +@@ -4,6 +4,11 @@ ifeq ($(UNAME), Darwin) + STATIC_LIBRARY_FILE=libpyvex.a + LDFLAGS=-Wl,-install_name,$(LIBRARY_FILE) + endif ++ifeq ($(UNAME), FreeBSD) ++ LIBRARY_FILE=libpyvex.so ++ STATIC_LIBRARY_FILE=libpyvex.a ++ LDFLAGS=-Wl,-soname,$(LIBRARY_FILE) %%LDFLAGS%% ++endif + ifeq ($(UNAME), Linux) + LIBRARY_FILE=libpyvex.so + STATIC_LIBRARY_FILE=libpyvex.a +@@ -27,10 +32,10 @@ sp += + qs = $(subst ?,$(sp),$1) + sq = $(subst $(sp),?,$1) + +-CC=gcc +-AR=ar ++CC?=gcc ++AR?=ar + INCFLAGS=-I "$(VEX_INCLUDE_PATH)" +-CFLAGS=-g -O2 -Wall -shared -fPIC -std=c99 $(INCFLAGS) ++CFLAGS=-g %%CFLAGS%% -Wall -shared -fPIC $(INCFLAGS) + + OBJECTS=pyvex.o logging.o analysis.o postprocess.o + HEADERS=pyvex.h |