From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60392 invoked by alias); 16 Dec 2016 20:53:17 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 60372 invoked by uid 89); 16 Dec 2016 20:53:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.6 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=mingw, trend, H*r:Unknown, stilor@att.net X-HELO: m69-170.mailgun.net Received: from m69-170.mailgun.net (HELO m69-170.mailgun.net) (166.78.69.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 16 Dec 2016 20:53:06 +0000 X-Mailgun-Sending-Ip: 166.78.69.170 X-Mailgun-Sid: WyIwZTgzNyIsICJjcm9zc2djY0Bzb3VyY2V3YXJlLm9yZyIsICI0MGYiXQ== Received: from github.com (Unknown [192.30.252.45]) by mxa.mailgun.org with ESMTP id 58545428.7f380e7818a0-in07; Fri, 16 Dec 2016 20:52:56 -0000 (UTC) Date: Fri, 16 Dec 2016 20:53:00 -0000 From: Alexey Neyman Reply-To: Alexey Neyman To: crossgcc@sourceware.org Message-ID: <585454287c400_57853f7f73cdb13054651@hookshot-fe3-cp1-prd.iad.github.net.mail> Subject: [crosstool-ng/crosstool-ng] 3dbb57: Make companion libs static. Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="--==_mimepart_585454287bfb4_57853f7f73cdb130545f2"; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-12/txt/msg00014.txt.bz2 ----==_mimepart_585454287bfb4_57853f7f73cdb130545f2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 2660 Branch: refs/heads/master Home: https://github.com/crosstool-ng/crosstool-ng Commit: 3dbb576c1708c1683ef780a43dec31a220458f39 https://github.com/crosstool-ng/crosstool-ng/commit/3dbb576c1708c1683ef780a43dec31a220458f39 Author: Alexey Neyman Date: 2016-12-11 (Sun, 11 Dec 2016) Changed paths: A samples/x86_64-w64-mingw32,arm-cortexa9_neon-linux-gnueabihf/crosstool.config A samples/x86_64-w64-mingw32,arm-cortexa9_neon-linux-gnueabihf/reported.by M scripts/build/companion_libs/200-libelf.sh M scripts/build/companion_libs/210-expat.sh M scripts/build/companion_libs/220-ncurses.sh M scripts/build/companion_libs/320-libiconv.sh M scripts/build/companion_libs/330-gettext.sh Log Message: ----------- Make companion libs static. This follows the trend set by 1*.sh scripts that configure ISL, GMP, MPFR, CLooG, etc. Building with shared libraries presents all kinds of problems: - The shared libraries need to be installed into ${CT_PREFIX_DIR}. - The binaries linked against companion libs need to have proper RPATH, or they're looking for shared libs in .build/${CT_PREFIX}/buildtools/lib. - All libraries must agree as to whether they're built shared, static, or both. Otherwise, gettext tries to link in static libncurses.a into a shared library and fails (since libncurses was compiled without the -fPIC switch and hence contains relocations that cannot be handled in a shared library). So this fixes the current mess. If we decide to re-enable building the companion libs shared, we should probably make this dependent on a separate suboption of CT_STATIC_TOOLCHAIN. Add a config loosely based on one reported in the issue 274. Signed-off-by: Alexey Neyman Commit: 400f9e097265e66113cb46fb8f903af4e491f306 https://github.com/crosstool-ng/crosstool-ng/commit/400f9e097265e66113cb46fb8f903af4e491f306 Author: Alexey Neyman Date: 2016-12-16 (Fri, 16 Dec 2016) Changed paths: A samples/x86_64-w64-mingw32,arm-cortexa9_neon-linux-gnueabihf/crosstool.config A samples/x86_64-w64-mingw32,arm-cortexa9_neon-linux-gnueabihf/reported.by M scripts/build/companion_libs/200-libelf.sh M scripts/build/companion_libs/210-expat.sh M scripts/build/companion_libs/220-ncurses.sh M scripts/build/companion_libs/320-libiconv.sh M scripts/build/companion_libs/330-gettext.sh Log Message: ----------- Merge pull request #506 from stilor/canadian-gettext-mingw32 Make companion libs static; fix gettext build on mingw Compare: https://github.com/crosstool-ng/crosstool-ng/compare/7bea082b3ff7...400f9e097265 ----==_mimepart_585454287bfb4_57853f7f73cdb130545f2--