python/expat support

okay robert@, jasper@
This commit is contained in:
espie 2011-11-13 14:56:57 +00:00
parent 6a4021fac2
commit 40250aae9b
2 changed files with 22 additions and 6 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.17 2011/11/11 23:01:23 jasper Exp $
# $OpenBSD: Makefile,v 1.18 2011/11/13 14:56:57 espie Exp $
COMMENT= GNU debugger
CATEGORIES= devel
DISTNAME= gdb-7.2
REVISION= 5
REVISION= 6
HOMEPAGE= http://www.gnu.org/software/gdb/
@ -20,16 +20,21 @@ DIST_SUBDIR= gdb
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/gdb
WANTLIB+= c kvm m ncurses z
WANTLIB += c kvm m ncurses z
#SEPARATE_BUILD = Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --program-transform-name=s,^,e, \
--disable-nls \
--enable-target=all \
--without-expat \
--without-python
--enable-target=all \
--with-python=${MODPY_BIN}
USE_GMAKE= Yes
MODULES += lang/python
WANTLIB += expat ${MODPY_WANTLIB} pthread util
LIB_DEPENDS += ${MODPY_LIB_DEPENDS}
MODPY_BUILDDEP = No
.include <bsd.port.mk>

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-gdb_python_python-config_py,v 1.1 2011/11/13 14:56:57 espie Exp $
--- gdb/python/python-config.py.orig Thu May 27 03:36:22 2010
+++ gdb/python/python-config.py Sat Nov 12 23:43:37 2011
@@ -50,5 +50,7 @@ elif opt in ('--libs', '--ldflags'):
# shared library in prefix/lib/.
if opt == '--ldflags' and not getvar('Py_ENABLE_SHARED'):
libs.insert(0, '-L' + getvar('LIBPL'))
+ if opt == '--ldflags':
+ libs.insert(0, getvar('LDFLAGS'))
print ' '.join(libs)