Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2005 20:08:58 -0700 (MST)
From:      Jie Gao <gaoj@cpsc.ucalgary.ca>
To:        kde@freebsd.org
Cc:        ports@freebsd.org
Subject:   Kpdf and -march=pentium4?
Message-ID:  <200503260308.j2Q38w2D053744@localhost.cpsc.ucalgary.ca>

next in thread | raw e-mail | index | archive | help
Hi All,

I noticed that while making kdegraphics from ports, if "-march=pentium4"
is in the compiler flags, I will finally get a non-working kpdf. It compiles
fine but when I try to open a pdf file, kdpf will core dupm. But a kpdf
compiled without "-march=pentium4" will work just fine.

For this reason, should we put something in kdegraphics3's Makefile to prevent
a bad kdpf? E.g. a patch like this:

==========8<==========8<==========8<==========8<==========8<==========

--- Makefile~	Sun Mar 20 12:23:32 2005
+++ Makefile	Fri Mar 25 19:59:25 2005
@@ -73,4 +73,11 @@
 	-E -e '/^SUBDIRS/s/(kamera|kooka|kuickshow)//g' \
 		${WRKSRC}/doc/Makefile.in
 
+.if !empty(CFLAGS:M-march=pentium4)
+post-configure:
+	@${ECHO_MSG} Remove unsafe compiler flags for kpdf
+	@${FIND} ${WRKSRC}/kpdf -name Makefile \
+		-exec ${REINPLACE_CMD} 's/ -march=pentium4//g' '{}' \;
+.endif
+
 .include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503260308.j2Q38w2D053744>