math/z3: Patch to add SONAME to shared library

Also ensure that python is available at build time when the PYTHON option
(for python bindings) is off.

PR:		221321
Submitted by:	6yearold@gmail.com (maintainer)
This commit is contained in:
Joseph Mingrone 2017-09-05 15:26:54 +00:00
parent d3788a9521
commit 533097adc5
2 changed files with 5 additions and 3 deletions

View file

@ -1,8 +1,9 @@
# $FreeBSD$
PORTNAME= z3
PORTVERSION= 4.5.0
DISTVERSIONPREFIX= ${PORTNAME}-
DISTVERSION= 4.5.0
PORTREVISION= 1
CATEGORIES= math
MAINTAINER= 6yearold@gmail.com
@ -25,9 +26,10 @@ OPTIONS_SUB= yes
DEBUG_CONFIGURE_ON= --debug
PYTHON_DESC= Enable python bindings
PYTHON_DESC= Enable python bindings
PYTHON_CONFIGURE_ON= --python
PYTHON_USES= python
PYTHON_USES_OFF= python:build
STATIC_DESC= Build static z3 library
STATIC_CONFIGURE_ON= --staticlib

View file

@ -14,7 +14,7 @@
CXX = find_cxx_compiler()
CC = find_c_compiler()
- SLIBEXTRAFLAGS = ''
+ SLIBEXTRAFLAGS = LDFLAGS
+ SLIBEXTRAFLAGS = '%s -Wl,-soname,libz3.so.0' % LDFLAGS
if GPROF:
CXXFLAGS = '%s -pg' % CXXFLAGS
LDFLAGS = '%s -pg' % LDFLAGS