From 2f541c4a36bf5b9371ef6a15d4964b17c8c56c7f Mon Sep 17 00:00:00 2001
From: Jaroslav Tulach <jaroslav.tulach@oracle.com>
Date: Thu, 11 Jan 2018 09:51:58 +0100
Subject: [PATCH] FASTR_RELEASE=dev signals release build that will only be
 used on a local computer - e.g. can use system libraries

---
 mx.fastr/mx_copylib.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mx.fastr/mx_copylib.py b/mx.fastr/mx_copylib.py
index 6bdb3d015b..42fdc33aa9 100644
--- a/mx.fastr/mx_copylib.py
+++ b/mx.fastr/mx_copylib.py
@@ -133,7 +133,8 @@ def copylib(args):
 #        if args[0] == 'quadmath' and (mx.get_arch() == 'sparcv9' or mx.get_os() == 'solaris'):
         if mx.get_arch() == 'sparcv9' or mx.get_os() == 'solaris':
             return 0
-        mx.abort(args[0] + ' not found in PKG_LDFLAGS_OVERRIDE, but required with FASTR_RELEASE')
+        if os.environ.get('FASTR_RELEASE') != 'dev':
+            mx.abort(args[0] + ' not found in PKG_LDFLAGS_OVERRIDE, but required with FASTR_RELEASE')
 
     mx.log(args[0] + ' not found in PKG_LDFLAGS_OVERRIDE, assuming system location')
     return 0
-- 
GitLab