From 4476bbe6229ef3168e7e6d35d63aa7d8338dbd9f Mon Sep 17 00:00:00 2001 From: Christopher Currie Date: Thu, 3 Jun 2004 15:14:04 +0000 Subject: [PATCH] Add option to inhibit non-PIC link warning on Solaris [SVN r23020] --- src/tools/gcc.jam | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tools/gcc.jam b/src/tools/gcc.jam index 169b4056e..b2d8b8470 100644 --- a/src/tools/gcc.jam +++ b/src/tools/gcc.jam @@ -125,6 +125,12 @@ flags gcc.link LINK-RUNTIME shared : dynamic ; flags gcc.link RPATH ; flags gcc.link RPATH_LINK ; +# This permits shared libraries with non-PIC code on Solaris +if [ os.name ] = SOLARIS +{ + flags gcc.link OPTIONS shared : -mimpure-text ; +} + rule link ( targets * : sources * : properties * ) { SPACE on $(targets) = " " ;