From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64804 invoked by alias); 9 Aug 2018 12:56:15 -0000 Mailing-List: contact libc-help-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: libc-help-owner@sourceware.org Received: (qmail 64792 invoked by uid 89); 9 Aug 2018 12:56:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx3-rdu2.redhat.com (HELO mx1.redhat.com) (66.187.233.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 09 Aug 2018 12:56:12 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0A47F40216EB; Thu, 9 Aug 2018 12:56:11 +0000 (UTC) Received: from oldenburg.str.redhat.com (dhcp-192-212.str.redhat.com [10.33.192.212]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8DE3710F1C00; Thu, 9 Aug 2018 12:56:10 +0000 (UTC) Subject: Re: libc/libstdc++ compatibility between versions To: Igor Chudov , "libc-help@sourceware.org" References: From: Florian Weimer Message-ID: Date: Thu, 09 Aug 2018 12:56:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-08/txt/msg00029.txt.bz2 On 08/09/2018 09:51 AM, Igor Chudov wrote: > Hello! > > I and my colleagues have a problem: We're compiling C++98 solib using GCC 4.4 on CentOS 6. We want to move to the newer compiler (GCC 4.8 on CentOS 7) but we still want the resulting DSO might be used by CentOS 6 users. So the question is: > - Is it possible to force linking with specific API version of glibc so we will be able to lock the functionality on CentOS 6 version of glibc? Not directly, no. The recommended way is to use DTS on CentOS 6 if you want to build binaries with a newer GCC version and stay ABI-compatible with CentOS 6. Thanks, Florian