mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
- Try to fix build on 10.x and fix segfault while running rtorrent
This commit is contained in:
parent
f29bf5fd0e
commit
a1a91e2182
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332456
@ -39,8 +39,13 @@ CONFIGURE_ENV= OPENSSL_LIBS="-L/usr/lib -ssl -crypto" OPENSSL_CFLAGS="-I/usr/inc
|
||||
|
||||
CONFIGURE_ARGS+= --disable-debug
|
||||
|
||||
# Workaround to build on > 10.x
|
||||
.if ${OSVERSION} >= 1000000
|
||||
USE_GCC= yes
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's/-O3/${CFLAGS}/' ${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/configure
|
||||
|
||||
.if ${PORT_OPTIONS:MKQUEUE}
|
||||
CONFIGURE_ARGS+= --with-kqueue
|
||||
|
@ -0,0 +1,10 @@
|
||||
--- ./src/torrent/connection_manager.h.orig 2013-10-25 09:26:00.379999391 +0100
|
||||
+++ ./src/torrent/connection_manager.h 2013-10-25 09:26:18.486351796 +0100
|
||||
@@ -40,6 +40,7 @@
|
||||
#define LIBTORRENT_CONNECTION_MANAGER_H
|
||||
|
||||
#include <sys/socket.h>
|
||||
+#include <sys/types.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/in_systm.h>
|
@ -35,6 +35,12 @@ NO_STAGE= yes
|
||||
BROKEN= Does not configure on arm
|
||||
.endif
|
||||
|
||||
# Workaround to build and segfault on > 10.x
|
||||
.if ${OSVERSION} >= 1000000
|
||||
USE_GCC= yes
|
||||
LDFLAGS+= -lc++
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MXMLRPC}
|
||||
CONFIGURE_ARGS+= --with-xmlrpc-c
|
||||
LIB_DEPENDS+= xmlrpc.3:${PORTSDIR}/net/xmlrpc-c-devel
|
||||
|
Loading…
Reference in New Issue
Block a user