1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00

Enable -fPIC only for libresid-builder.a

This commit is contained in:
Tijl Coosemans 2014-12-27 17:53:10 +00:00
parent 533947cd11
commit 1c89770e45
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=375689
2 changed files with 11 additions and 3 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= libsidplay2
PORTVERSION= 2.1.1
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= audio emulators
MASTER_SITES= SF/sidplay2/sidplay2/sidplay-libs-${PORTVERSION}
DISTNAME= sidplay-libs-${PORTVERSION}
@ -16,8 +16,6 @@ INSTALL_TARGET= install-strip
USES= gmake libtool pathfix pkgconfig
USE_LDCONFIG= yes
CFLAGS_amd64+= -fPIC
post-patch:
@${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|g' \
${WRKSRC}/libsidutils/src/ini/ini.cpp

View File

@ -0,0 +1,10 @@
--- configure.orig
+++ configure
@@ -1745,6 +1745,7 @@
echo; echo "Configuring resid-builder..."
cd $pwd/builders/resid-builder
if ! eval ./configure $ac_configure_args \
+--with-pic \
--with-sidplay2-includes=$pwd/libsidplay/include \
--with-sidplay2-library=$pwd/libsidplay/src \
--with-resid-includes=$pwd/resid \