1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00
freebsd-ports/devel/libcwd/Makefile
Gerald Pfeifer 2f28a9a60a Fails to build with newer versions of GCC (4.9 and above) due to
non-compliant C++ code.

PR:		196852, 196712
2015-01-18 22:49:05 +00:00

29 lines
631 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= libcwd
PORTVERSION= 1.0.4
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= C++ Debugging Support Library
USES= gmake pathfix pkgconfig libtool
# Fails to build with GCC 4.9, cf. PR 196852
USE_GCC= 4.8
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-alloc --disable-location --disable-threading \
--disable-pch
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
CFLAGS+= -D__GNU_LIBRARY__
post-patch:
@${REINPLACE_CMD} -e 's|malloc\.h|stdlib.h|g ; \
s|localtime(|localtime((const time_t *)|g' ${WRKSRC}/debugmalloc.cc
.include <bsd.port.mk>