From b4209d315e514dc5b8f8f31eb400c8dff39d0bb5 Mon Sep 17 00:00:00 2001 From: Maxim Kartashev Date: Mon, 22 May 2017 15:22:44 +0300 Subject: [PATCH] For sun-stlport, add -compat=5 to the command line in order to avoid build errors on the platforms where it is not the default (like on Linux). Without this additional option, the compiler exits with an error because -library=stlport4 only works with the Sun ABI (-compat=5), while the default might be GNU ABI (-compat=g). Do the same for the stdcxx library that is also available only in -compat=5 mode. This change is not strictly necessary as the stdcxx library is only available on Solaris, where the default is -compat=5 anyway. It has been added as a precaution. --- src/tools/sun.jam | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tools/sun.jam b/src/tools/sun.jam index ea6f7e36a..7f2d645fe 100644 --- a/src/tools/sun.jam +++ b/src/tools/sun.jam @@ -33,11 +33,13 @@ generators.override sun.searched-lib-generator : searched-lib-generator ; # feature.extend stdlib : sun-stlport ; feature.compose sun-stlport - : -library=stlport4 -library=stlport4 + : -library=stlport4 -compat=5 + -library=stlport4 -compat=5 ; feature.extend stdlib : apache ; feature.compose apache - : -library=stdcxx4 -library=stdcxx4 + : -library=stdcxx4 -compat=5 + -library=stdcxx4 -compat=5 ; feature.extend stdlib : gnu ; feature.compose gnu