- Fix build with gcc 4.x

PR:		ports/115647 (based on)
Submitted by:	Oliver Brandmueller <ob@e-gitt.net>
This commit is contained in:
Sergey Matveychuk 2007-08-30 15:57:05 +00:00
parent ce8d86f555
commit 12372ed189
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=198535
3 changed files with 22 additions and 4 deletions

View File

@ -33,10 +33,6 @@ PORTDOCS= *
IGNORE= is broken on sparc64: interchanges red and blue colour channels in images
.endif
.if ${ARCH} == i386 && ${OSVERSION} >= 700042
BROKEN= Does not compile with GCC 4.2 on i386
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}

View File

@ -0,0 +1,11 @@
--- src/HeadMMX.h.orig Thu Aug 30 19:26:59 2007
+++ src/HeadMMX.h Thu Aug 30 19:27:59 2007
@@ -51,7 +51,7 @@
/* Fix the underscore business with ELF compilers */
-#if defined(__ELF__) && defined(__GNUC__)
+#if defined(__ELF__) && defined(__GNUC__) && __GNUC__ < 4
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -0,0 +1,11 @@
--- src/HeadX86.h.orig Thu Aug 30 19:28:22 2007
+++ src/HeadX86.h Thu Aug 30 19:28:44 2007
@@ -83,7 +83,7 @@
/* Now fix up the ELF underscore problem */
-#if defined(__ELF__) && defined(__GNUC__)
+#if defined(__ELF__) && defined(__GNUC__) && __GNUC__ < 4
#ifdef __cplusplus
extern "C" {
#endif