pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libbsd: enable LTO when supported.



Module Name:	pkgsrc-wip
Committed By:	Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By:	vms
Date:		Fri Jul 1 19:56:21 2022 +0200
Changeset:	bc769dafcd7473dab2df0cd645010cf94c672d43

Modified Files:
	libbsd/Makefile

Log Message:
libbsd: enable LTO when supported.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=bc769dafcd7473dab2df0cd645010cf94c672d43

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 libbsd/Makefile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diffs:
diff --git a/libbsd/Makefile b/libbsd/Makefile
index 9dfaae717e..086cdee066 100644
--- a/libbsd/Makefile
+++ b/libbsd/Makefile
@@ -5,7 +5,6 @@ CATEGORIES=	devel
 MASTER_SITES=	https://libbsd.freedesktop.org/releases/
 EXTRACT_SUFX=	.tar.xz
 
-
 MAINTAINER=	vms%retrobsd.ddns.net@localhost
 HOMEPAGE=	https://libbsd.freedesktop.org/
 COMMENT=	Compatibility library for BSD functions under other systems
@@ -13,7 +12,12 @@ LICENSE=	original-bsd
 
 GNU_CONFIGURE=	yes
 USE_LIBTOOL=	yes
-USE_TOOLS+=	pkg-config
+USE_TOOLS+=	pkg-config autoconf automake autoreconf
+
+CFLAGS+=	-ffat-lto-objects
+
+pre-configure:
+	set -e; cd ${WRKSRC} && autoreconf -fiv
 
 PKGCONFIG_OVERRIDE+=	src/libbsd-ctor.pc.in
 PKGCONFIG_OVERRIDE+=	src/libbsd-overlay.pc.in


Home | Main Index | Thread Index | Old Index