Some platforms don't have libstdc++. And even if they have, it should

never be necessary to explicitly link against it, since that is the job
of the C++ compiler. So use that instead of the C compiler for linking
the programs.

This fixes the build on Solaris with SunPro.
This commit is contained in:
rillig 2007-02-07 22:12:21 +00:00
parent a171b6cef7
commit fb7b2c9111

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1.1.1 2007/02/07 19:32:03 rmind Exp $
# $NetBSD: Makefile,v 1.2 2007/02/07 22:12:21 rillig Exp $
DISTNAME= geany-0.10
CATEGORIES= devel
@ -12,5 +12,8 @@ GNU_CONFIGURE= YES
USE_TOOLS+= pkg-config
USE_LANGUAGES= c c++
BUILDLINK_TRANSFORM+= rm:-lstdc++
MAKE_FLAGS+= CCLD=${CXX:Q}
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"