From d36391fc9b217b79a2e5b287f86aae7a0484e06c Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 24 Mar 2006 11:20:57 +0000 Subject: - Use -fPIC just where it's really needed Submitted by: Johan van Selst --- x11-wm/bbconf/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'x11-wm') diff --git a/x11-wm/bbconf/Makefile b/x11-wm/bbconf/Makefile index 08bdeb52452a..90e6c7d98971 100644 --- a/x11-wm/bbconf/Makefile +++ b/x11-wm/bbconf/Makefile @@ -36,14 +36,14 @@ PLIST_DIRS= lib/bbconf/plugins lib/bbconf .include -.if ${ARCH} == "amd64" || ${ARCH} == "ia64" -CFLAGS+= -fPIC -DPIC -.endif - post-patch: - @${PERL} -pi -e 's|: install-docDATA|:|g' ${WRKSRC}/Makefile.in - @${PERL} -pi -e 's|-O2 ||g ; \ + @${REINPLACE_CMD} -e 's|: install-docDATA|:|g' ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e 's|-O2 ||g ; \ s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure +.if ${ARCH} == "amd64" || ${ARCH} == "ia64" + @${REINPLACE_CMD} -e '/^CXXFLAGS =/s/$$/ -fPIC/' \ + ${WRKSRC}/bbconf/plugins/*/Makefile.in +.endif post-install: .if !defined(NOPORTDOCS) -- cgit v1.2.3