summaryrefslogtreecommitdiff
path: root/cross/nios2-gcc41
diff options
context:
space:
mode:
authormef <mef@pkgsrc.org>2013-12-03 02:34:52 +0000
committermef <mef@pkgsrc.org>2013-12-03 02:34:52 +0000
commita7280614c9aa9a461e419e4b74358ca0862ab27d (patch)
tree24c9417b785b84f1702cfc55fd409842c0f578a3 /cross/nios2-gcc41
parent54a865ee83f8d9bd6813b4f65dd10511c0da899c (diff)
downloadpkgsrc-a7280614c9aa9a461e419e4b74358ca0862ab27d.tar.gz
Add sysroot configuration option (with default enabled, assuming
main customer of this package is for NetBSD target), see http://mail-index.netbsd.org/tech-toolchain/2011/03/21/msg001511.html
Diffstat (limited to 'cross/nios2-gcc41')
-rw-r--r--cross/nios2-gcc41/options.mk11
1 files changed, 8 insertions, 3 deletions
diff --git a/cross/nios2-gcc41/options.mk b/cross/nios2-gcc41/options.mk
index 5197560806d..f391d31c0ae 100644
--- a/cross/nios2-gcc41/options.mk
+++ b/cross/nios2-gcc41/options.mk
@@ -1,11 +1,16 @@
-# $NetBSD: options.mk,v 1.1 2013/11/16 07:41:00 mef Exp $
+# $NetBSD: options.mk,v 1.2 2013/12/03 02:34:52 mef Exp $
### Set options
PKG_OPTIONS_VAR= PKG_OPTIONS.nios2-gcc
-PKG_SUPPORTED_OPTIONS= doc
-PKG_SUGGESTED_OPTIONS=
+PKG_SUPPORTED_OPTIONS= doc sysroot
+PKG_SUGGESTED_OPTIONS= sysroot
.include "../../mk/bsd.options.mk"
+# See http://mail-index.netbsd.org/tech-toolchain/2011/03/21/msg001511.html
+.if !empty(PKG_OPTIONS:Msysroot)
+CFLAGS+= -DTARGET_SYSTEM_ROOT=0 -DTARGET_SYSTEM_ROOT_RELOCATABLE
+.endif
+
# conditional SUBST_CLASSES
.if empty(PKG_OPTIONS:Mdoc)
post-patch: