From b83f8ff8c77b075a12877f12162724977b17612d Mon Sep 17 00:00:00 2001
From: Jaroslav Tulach <jaroslav.tulach@oracle.com>
Date: Thu, 11 Jan 2018 15:43:57 +0100
Subject: [PATCH] Warn the build isn't going to be portable when
 FASTR_RELEASE=dev

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

diff --git a/mx.fastr/mx_copylib.py b/mx.fastr/mx_copylib.py
index 42fdc33aa9..562af9e5a6 100644
--- a/mx.fastr/mx_copylib.py
+++ b/mx.fastr/mx_copylib.py
@@ -133,7 +133,10 @@ 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
-        if os.environ.get('FASTR_RELEASE') != 'dev':
+        if os.environ.get('FASTR_RELEASE') == 'dev':
+            mx.log(args[0] + ' not found in PKG_LDFLAGS_OVERRIDE, but required with FASTR_RELEASE')
+            mx.log('the resulting FastR release build will not be portable to another system')
+        else:
             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')
-- 
GitLab