Introduce check for gcc version. If compiled with gcc-4, avoid
optimizations.
This commit is contained in:
parent
54fbeed4d7
commit
673b9c643d
1 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
# $NetBSD: Makefile,v 1.11 2007/01/23 08:00:38 marttikuparinen Exp $
|
||||
# $NetBSD: Makefile,v 1.12 2007/02/10 13:39:11 d_sieger Exp $
|
||||
|
||||
.include "../../wip/xfce4/Makefile.common"
|
||||
.include "../../mk/compiler.mk"
|
||||
|
||||
DISTNAME= xfce4-panel-${XFCE4_VERSION}
|
||||
#PKGREVISION= 1
|
||||
|
@ -10,13 +11,17 @@ COMMENT= Xfce panel
|
|||
PKGCONFIG_OVERRIDE= panel/xfce4-panel-1.0.pc.in
|
||||
PTHREAD_AUTO_VARS= yes
|
||||
|
||||
# Compile the panel launcher without GCC optimization
|
||||
# If using gcc-4, compile the panel launcher without
|
||||
# GCC optimization. See
|
||||
# http://bugzilla.xfce.org/show_bug.cgi?id=2262
|
||||
|
||||
.if (!empty(CC_VERSION:Mgcc-4.*))
|
||||
SUBST_CLASSES+= launcher
|
||||
SUBST_STAGE.launcher= post-configure
|
||||
SUBST_FILES.launcher= plugins/launcher/Makefile
|
||||
SUBST_SED.launcher= -e 's|-O |-O0 |g'
|
||||
SUBST_SED.launcher+= -e 's|-O[123s] |-O0 |g'
|
||||
.endif
|
||||
|
||||
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
|
||||
.include "../../textproc/libxml2/buildlink3.mk"
|
||||
|
|
Loading…
Reference in a new issue