summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorryoon <ryoon>2015-06-10 20:20:42 +0000
committerryoon <ryoon>2015-06-10 20:20:42 +0000
commitb9e9910ef4e291ec38490be4fb97d0d0e691f965 (patch)
treecfd70531514ac870832bc7341da3d5b044d04d60 /lang
parent3a17e6c94d7283b9de466ec3ef9007f054484259 (diff)
downloadpkgsrc-b9e9910ef4e291ec38490be4fb97d0d0e691f965.tar.gz
Fix build under Solaris 10u11.
It requires newer binutils and Solaris linker. gfortran part is still broken for me.
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc49/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/lang/gcc49/Makefile b/lang/gcc49/Makefile
index fc2720a56e2..64b9bdbfdae 100644
--- a/lang/gcc49/Makefile
+++ b/lang/gcc49/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2014/11/28 11:47:00 bsiegert Exp $
+# $NetBSD: Makefile,v 1.5 2015/06/10 20:20:42 ryoon Exp $
GCC_PKGNAME= gcc49
.include "version.mk"
@@ -112,7 +112,7 @@ CONFIGURE_ARGS+= --with-arch=i486 --with-tune=i486
MAKE_ENV+= ac_cv_path_SED=${TOOLS_SED}
MAKE_ENV+= lt_cv_path_SED=${TOOLS_SED}
-.if ${OPSYS} == "SunOS"
+.if !empty(MACHINE_PLATFORM:MSunOS-5.1[123456789]-*)
# Causes multilib build problems with specific compiler combinations
MAKE_ENV+= gcc_cv_ld_as_needed=no
# Determine whether to use binutils
@@ -133,6 +133,16 @@ BUILDLINK_DEPMETHOD.binutils= full
. include "../../devel/binutils/buildlink3.mk"
CONFIGURE_ARGS+= --with-gnu-as --with-as=${PREFIX}/bin/gas
. endif
+.else # Solaris 10
+. if exists(/usr/sfw/bin/gobjdump)
+CONFIGURE_ENV+= OBJDUMP=/usr/sfw/bin/gobjdump
+. endif
+BUILDLINK_API_DEPENDS.binutils+= binutils>=2.23
+BUILDLINK_DEPMETHOD.binutils= full
+. include "../../devel/binutils/buildlink3.mk"
+CONFIGURE_ENV+= OBJCOPY=${PREFIX}/bin/gobjcopy
+CONFIGURE_ARGS+= --with-gnu-as --with-as=${PREFIX}/bin/gas
+CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/ccs/bin/ld
.endif
pre-configure: