From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1298) id 884B93858CDB; Fri, 30 Sep 2022 10:43:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 884B93858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664534601; bh=5AiWUDrgNJgWAN4uk+x7J8syaiuSrB10bJnLWFzyN5A=; h=From:To:Subject:Date:From; b=x+EspcnFC0cPc0MEIdWXj4HCOrCmk/TBh0Sj5t+Gzk/Tj0FfYp32tDMeUnAbnm5Yo zqsCLNiP+2QlpmmkYHDb7gGqN6BlphO7AuPguDgffH0gjAiIJIEW/Q3bAxd04TqzGJ 2lls5BLXzj9VOmpX3twOH3yUDxEuXQlss96vZB8w= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Olivier Hainque To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-2979] Arrange to --disable-shared by default for VxWorks X-Act-Checkin: gcc X-Git-Author: Olivier Hainque X-Git-Refname: refs/heads/master X-Git-Oldrev: 43faf3e5445b571731e52faa1be085ecd0a09323 X-Git-Newrev: 9b8ffbb8a0cadd68bf7887c5655a29ec04060111 Message-Id: <20220930104321.884B93858CDB@sourceware.org> Date: Fri, 30 Sep 2022 10:43:21 +0000 (GMT) List-Id: https://gcc.gnu.org/g:9b8ffbb8a0cadd68bf7887c5655a29ec04060111 commit r13-2979-g9b8ffbb8a0cadd68bf7887c5655a29ec04060111 Author: Olivier Hainque Date: Fri Dec 3 17:48:18 2021 +0000 Arrange to --disable-shared by default for VxWorks This change makes sure that shared libraries for VxWorks are only built on explicit request, when configured with --enable-shared. As the support to build shared libs gets in very incrementally, this provides us with a robust way to guard the relevant pieces and reduce the risks of accidentally breaking a platform not yet ready for it. 2022-09-30 Olivier Hainque * configure.ac (*vxworks*): If enable_shared is not set, set to "no" and add --disable-shared to target and host_configargs. * configure: Regenerate. Diff: --- configure | 11 +++++++++++ configure.ac | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/configure b/configure index e7604dc6ff0..d9aa84c6138 100755 --- a/configure +++ b/configure @@ -10263,6 +10263,17 @@ case "${target}" in mep*) FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" ;; + # The VxWorks support for shared libraries is getting in + # incrementally. Make sure it doesn't get activated implicitly: + *vxworks*) + if test "${enable_shared-unset}" = unset ; then + enable_shared=no + # So the build of libraries knows ... + target_configargs="${target_configargs} --disable-shared" + # So gcc knows ... + host_configargs="${host_configargs} --disable-shared" + fi + ;; esac # Makefile fragments. diff --git a/configure.ac b/configure.ac index 3cfd9b41fca..2cff32e300e 100644 --- a/configure.ac +++ b/configure.ac @@ -3440,6 +3440,17 @@ case "${target}" in mep*) FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" ;; + # The VxWorks support for shared libraries is getting in + # incrementally. Make sure it doesn't get activated implicitly: + *vxworks*) + if test "${enable_shared-unset}" = unset ; then + enable_shared=no + # So the build of libraries knows ... + target_configargs="${target_configargs} --disable-shared" + # So gcc knows ... + host_configargs="${host_configargs} --disable-shared" + fi + ;; esac # Makefile fragments.