Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Aug 2014 15:03:41 +0400
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        Tijl Coosemans <tijl@FreeBSD.org>
Cc:        svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org
Subject:   Re: svn commit: r366494 - head/devel/libbfd
Message-ID:  <20140829110341.GR55025@hades.panopticon>
In-Reply-To: <201408291032.s7TAWihO072533@svn.freebsd.org>
References:  <201408291032.s7TAWihO072533@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* Tijl Coosemans (tijl@FreeBSD.org) wrote:

> Log:
>   - Add USES=libtool
>   - Modify CONFIGURE_TARGET instead of ARCH

This is a bit tricky (as everything with static libs): the static
lib depends on libz:

---
dependency_libs=' -lz'
---

so dependencies won't link with it (confirmed on fnccheck and
skyeye). I think the solution is to convert it to shared library
(configure has needed options) - I've started this but haven't
finished for some reason.

> Modified:
>   head/devel/libbfd/Makefile
>   head/devel/libbfd/pkg-plist
> 
> Modified: head/devel/libbfd/Makefile
> ==============================================================================
> --- head/devel/libbfd/Makefile	Fri Aug 29 10:31:00 2014	(r366493)
> +++ head/devel/libbfd/Makefile	Fri Aug 29 10:32:44 2014	(r366494)
> @@ -3,6 +3,7 @@
>  
>  PORTNAME=	libbfd
>  PORTVERSION=	2.19.1
> +PORTREVISION=	1
>  CATEGORIES=	devel
>  MASTER_SITES=	${MASTER_SITE_SOURCEWARE}
>  MASTER_SITE_SUBDIR=	binutils/releases
> @@ -17,7 +18,7 @@ CONFLICTS=	mingw-binutils-[0-9]* binutil
>  
>  WRKSRC=		${WRKDIR}/binutils-${PORTVERSION}/bfd
>  
> -USES=		gmake tar:bzip2
> +USES=		gmake libtool tar:bzip2
>  GNU_CONFIGURE=	yes
>  CONFIGURE_ARGS=	--enable-install-libbfd \
>  		--enable-commonbfdlib \
> @@ -25,12 +26,7 @@ CONFIGURE_ARGS=	--enable-install-libbfd 
>  		--without-pic \
>  		--enable-targets=all \
>  		--disable-werror
> +CONFIGURE_TARGET=${ARCH:S/amd64/x86_64/}-portbld-${OPSYS:tl}${OSREL}
>  INFO=		bfd
>  
> -.include <bsd.port.pre.mk>
> -
> -.if ${ARCH} == "amd64"
> -ARCH=		x86_64
> -.endif
> -
> -.include <bsd.port.post.mk>
> +.include <bsd.port.mk>
> 
> Modified: head/devel/libbfd/pkg-plist
> ==============================================================================
> --- head/devel/libbfd/pkg-plist	Fri Aug 29 10:31:00 2014	(r366493)
> +++ head/devel/libbfd/pkg-plist	Fri Aug 29 10:32:44 2014	(r366494)
> @@ -3,4 +3,3 @@ include/bfd.h
>  include/bfdlink.h
>  include/symcat.h
>  lib/libbfd.a
> -lib/libbfd.la
> 

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3@amdmi3.ru  ..:  jabber: amdmi3@jabber.ru    http://www.amdmi3.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140829110341.GR55025>