From patchwork Wed Oct 22 15:53:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 402201 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 83AC1140080 for ; Thu, 23 Oct 2014 02:53:35 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; q=dns; s=default; b=WTPvx/vj+VR1O0xJNNIIjExMBn77P28onbaLGQhKyLItLUWRj8 RA8SjmStrpVjVs78Lfms+Ij2JEyRejFbL/mowsFHumc+61IssPNkIcPAIptVT+qy ODKTYpWaH98fFu2+2iPbDZlyl0a2v7slhuI+zRZ+SGv1vzslWB88AuLEA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; s= default; bh=6/9RgvqDOZguaCpTatcImWHE96M=; b=Emyl8TbhoNu58mm6UxT+ xnSj3jzKSntAgOBAdL1+j2WjSrHs9o5yK7LW6twQWKwbHyc8P2ePOdWlsU7vcz+h Rh/eKICY/O+MXwmUna1YETHz39Ay2EmG3tR990m4wbxWuwg1lgoKFxFRmknqdLQ2 Q19ZBF4dZW8qnizq0h3nNwg= Received: (qmail 23035 invoked by alias); 22 Oct 2014 15:53:29 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 23026 invoked by uid 89); 22 Oct 2014 15:53:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: smtp-relay.CeBiTec.Uni-Bielefeld.DE Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 22 Oct 2014 15:53:27 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id D15432FB; Wed, 22 Oct 2014 17:53:24 +0200 (CEST) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id r7ag--V6c36g; Wed, 22 Oct 2014 17:53:23 +0200 (CEST) Received: from lokon.CeBiTec.Uni-Bielefeld.DE (lokon.CeBiTec.Uni-Bielefeld.DE [129.70.161.110]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 473E12F9; Wed, 22 Oct 2014 17:53:23 +0200 (CEST) Received: (from ro@localhost) by lokon.CeBiTec.Uni-Bielefeld.DE (8.14.7+Sun/8.14.7/Submit) id s9MFrMSL002908; Wed, 22 Oct 2014 17:53:22 +0200 (CEST) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Richard Biener Subject: [build] Link genmatch with $(LIBINTL) Date: Wed, 22 Oct 2014 17:53:22 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes With the match-and-simply patch, Solaris 10 bootstrap is broken: Undefined first referenced symbol in file libintl_bindtextdomain ../libcpp/libcpp.a(init.o) libintl_dgettext ../libcpp/libcpp.a(errors.o) ld: fatal: symbol referencing errors. No output written to build/genmatch collect2: error: ld returned 1 exit status make[3]: *** [build/genmatch] Error 1 It seems the following patch fixes this, at least a i386-pc-solaris2.10 bootstrap is in stage2 now. Ok for mainline? Rainer 2014-10-22 Rainer Orth * Makefile.in (build/genmatch(build_exeext)): Add $(LIBINTL) to BUILD_LIBS. Add $(LIBINTL_DEP) dependency. diff --git a/gcc/Makefile.in b/gcc/Makefile.in --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -2519,8 +2519,9 @@ genprog = $(genprogerr) check checksum c # These programs need libs over and above what they get from the above list. build/genautomata$(build_exeext) : BUILD_LIBS += -lm - -build/genmatch$(build_exeext) : $(CPPLIB) $(LIBIBERTY) \ +build/genmatch(build_exeext) : BUILD_LIBS += $(LIBINTL) + +build/genmatch$(build_exeext) : $(CPPLIB) $(LIBIBERTY) $(LIBINTL_DEP) \ $(BUILD_ERRORS) build/vec.o build/hash-table.o # These programs are not linked with the MD reader.