Wed Jun 10 20:20:42 2015 UTC ()
Fix build under Solaris 10u11.
It requires newer binutils and Solaris linker.
gfortran part is still broken for me.


(ryoon)
diff -r1.4 -r1.5 pkgsrc/lang/gcc49/Makefile

cvs diff -r1.4 -r1.5 pkgsrc/lang/gcc49/Attic/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/gcc49/Attic/Makefile 2014/11/28 11:47:00 1.4
+++ pkgsrc/lang/gcc49/Attic/Makefile 2015/06/10 20:20:42 1.5
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.4 2014/11/28 11:47:00 bsiegert Exp $ 1# $NetBSD: Makefile,v 1.5 2015/06/10 20:20:42 ryoon Exp $
2 2
3GCC_PKGNAME= gcc49 3GCC_PKGNAME= gcc49
4.include "version.mk" 4.include "version.mk"
5 5
6DISTNAME= gcc-${GCC49_DIST_VERSION} 6DISTNAME= gcc-${GCC49_DIST_VERSION}
7PKGNAME= ${GCC_PKGNAME}-${GCC49_DIST_VERSION} 7PKGNAME= ${GCC_PKGNAME}-${GCC49_DIST_VERSION}
8 8
9## When bumping the PKGREVISION of this package the PKGREVISION of 9## When bumping the PKGREVISION of this package the PKGREVISION of
10## lang/gcc49-libs needs to be bump to be at least 1 more than the 10## lang/gcc49-libs needs to be bump to be at least 1 more than the
11## PKGREVISION of this package! 11## PKGREVISION of this package!
12PKGREVISION= 1 12PKGREVISION= 1
13 13
14CATEGORIES= lang 14CATEGORIES= lang
@@ -102,47 +102,57 @@ CONFIGURE_ARGS+= --disable-multili @@ -102,47 +102,57 @@ CONFIGURE_ARGS+= --disable-multili
102 102
103.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) || !empty(MACHINE_PLATFORM:MLinux-*-i386) 103.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) || !empty(MACHINE_PLATFORM:MLinux-*-i386)
104CONFIGURE_ARGS+= --with-arch=i486 --with-tune=i486 104CONFIGURE_ARGS+= --with-arch=i486 --with-tune=i486
105.endif 105.endif
106 106
107.include "options.mk" 107.include "options.mk"
108 108
109# ${WRKSRC}/fixincludes/ looks for sed and compiles the path to sed into 109# ${WRKSRC}/fixincludes/ looks for sed and compiles the path to sed into
110# a binary so we need to make sure we give it the installed sed and not 110# a binary so we need to make sure we give it the installed sed and not
111# the tool wrapped one. 111# the tool wrapped one.
112MAKE_ENV+= ac_cv_path_SED=${TOOLS_SED} 112MAKE_ENV+= ac_cv_path_SED=${TOOLS_SED}
113MAKE_ENV+= lt_cv_path_SED=${TOOLS_SED} 113MAKE_ENV+= lt_cv_path_SED=${TOOLS_SED}
114 114
115.if ${OPSYS} == "SunOS" 115.if !empty(MACHINE_PLATFORM:MSunOS-5.1[123456789]-*)
116# Causes multilib build problems with specific compiler combinations 116# Causes multilib build problems with specific compiler combinations
117MAKE_ENV+= gcc_cv_ld_as_needed=no 117MAKE_ENV+= gcc_cv_ld_as_needed=no
118# Determine whether to use binutils 118# Determine whether to use binutils
119. if exists(/usr/sfw/bin/gobjdump) 119. if exists(/usr/sfw/bin/gobjdump)
120CONFIGURE_ENV+= OBJDUMP=/usr/sfw/bin/gobjdump 120CONFIGURE_ENV+= OBJDUMP=/usr/sfw/bin/gobjdump
121. endif 121. endif
122. if exists(/usr/bin/ld) 122. if exists(/usr/bin/ld)
123CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/bin/ld 123CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/bin/ld
124. else 124. else
125CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/ccs/bin/ld 125CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/ccs/bin/ld
126. endif 126. endif
127. if exists(/usr/sfw/bin/gas) 127. if exists(/usr/sfw/bin/gas)
128CONFIGURE_ARGS+= --with-gnu-as --with-as=/usr/sfw/bin/gas 128CONFIGURE_ARGS+= --with-gnu-as --with-as=/usr/sfw/bin/gas
129. elif exists(/usr/ccs/bin/as) 129. elif exists(/usr/ccs/bin/as)
130CONFIGURE_ARGS+= --without-gnu-as --with-as=/usr/ccs/bin/as 130CONFIGURE_ARGS+= --without-gnu-as --with-as=/usr/ccs/bin/as
131. else 131. else
132BUILDLINK_DEPMETHOD.binutils= full 132BUILDLINK_DEPMETHOD.binutils= full
133. include "../../devel/binutils/buildlink3.mk" 133. include "../../devel/binutils/buildlink3.mk"
134CONFIGURE_ARGS+= --with-gnu-as --with-as=${PREFIX}/bin/gas 134CONFIGURE_ARGS+= --with-gnu-as --with-as=${PREFIX}/bin/gas
135. endif 135. endif
 136.else # Solaris 10
 137. if exists(/usr/sfw/bin/gobjdump)
 138CONFIGURE_ENV+= OBJDUMP=/usr/sfw/bin/gobjdump
 139. endif
 140BUILDLINK_API_DEPENDS.binutils+= binutils>=2.23
 141BUILDLINK_DEPMETHOD.binutils= full
 142. include "../../devel/binutils/buildlink3.mk"
 143CONFIGURE_ENV+= OBJCOPY=${PREFIX}/bin/gobjcopy
 144CONFIGURE_ARGS+= --with-gnu-as --with-as=${PREFIX}/bin/gas
 145CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/ccs/bin/ld
136.endif 146.endif
137 147
138pre-configure: 148pre-configure:
139 ${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR} 149 ${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
140 150
141TEST_TARGET= -k check || ${TRUE} 151TEST_TARGET= -k check || ${TRUE}
142pre-test: 152pre-test:
143 ${RUN} \ 153 ${RUN} \
144 if runtest --version >/dev/null 2>/dev/null ; then \ 154 if runtest --version >/dev/null 2>/dev/null ; then \
145 : ; \ 155 : ; \
146 else \ 156 else \
147 ${ECHO} "ERROR: Please install devel/dejagnu in order to run the test suite." ; \ 157 ${ECHO} "ERROR: Please install devel/dejagnu in order to run the test suite." ; \
148 exit 1 ; \ 158 exit 1 ; \