diff options
author | Renato Botelho <garga@FreeBSD.org> | 2006-03-24 11:20:57 +0000 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2006-03-24 11:20:57 +0000 |
commit | d36391fc9b217b79a2e5b287f86aae7a0484e06c (patch) | |
tree | 3f0566e2d30de97c085897a8949eadadd7905eee /x11-wm | |
parent | 29da4dcb633d45734587439a145c0f1c0a41f3d5 (diff) |
- Use -fPIC just where it's really needed
Submitted by: Johan van Selst <johans@stack.nl>
Notes
Notes:
svn path=/head/; revision=158054
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/bbconf/Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
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 <bsd.port.pre.mk> -.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) |