summaryrefslogtreecommitdiff
path: root/lang/gcc7
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2018-05-02 18:38:30 +0000
committerminskim <minskim@pkgsrc.org>2018-05-02 18:38:30 +0000
commit63516235fe33455beed584c002bcdbb9c18767f8 (patch)
treec61cf8fbfa6e61e2a675f21593bab601519f9a8c /lang/gcc7
parentc1adae0f76ca75270cc117cc39388cb077d41034 (diff)
downloadpkgsrc-63516235fe33455beed584c002bcdbb9c18767f8.tar.gz
lang/gcc7: Refine the condition to enable multilib
Diffstat (limited to 'lang/gcc7')
-rw-r--r--lang/gcc7/options.mk11
1 files changed, 8 insertions, 3 deletions
diff --git a/lang/gcc7/options.mk b/lang/gcc7/options.mk
index d7d18109905..ef2afaf06b7 100644
--- a/lang/gcc7/options.mk
+++ b/lang/gcc7/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.2 2017/05/10 15:02:29 jperkin Exp $
+# $NetBSD: options.mk,v 1.3 2018/05/02 18:38:30 minskim Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.${GCC_PKGNAME}
PKG_SUPPORTED_OPTIONS= nls gcc-inplace-math gcc-c++ gcc-fortran \
@@ -22,8 +22,13 @@ PKG_SUGGESTED_OPTIONS+= gcc-inplace-math
###
MULTILIB_SUPPORTED?= unknown
.if !empty(MACHINE_PLATFORM:MLinux-*-x86_64)
-. if exists(/usr/include/gnu/stubs-64.h) && \
- !exists(/usr/include/gnu/stubs-32.h)
+. if exists(/usr/include/x86_64-linux-gnu/gnu)
+_GNU_INCLUDE_DIR= /usr/include/x86_64-linux-gnu/gnu
+. else
+_GNU_INCLUDE_DIR= /usr/include/gnu
+. endif
+. if exists(${_GNU_INCLUDE_DIR}/stubs-64.h) && \
+ !exists(${_GNU_INCLUDE_DIR}/stubs-32.h)
MULTILIB_SUPPORTED=No
. else
MULTILIB_SUPPORTED=Yes