From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23932 invoked by alias); 17 Oct 2013 03:40:03 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 23921 invoked by uid 89); 17 Oct 2013 03:40:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f47.google.com Received: from mail-pa0-f47.google.com (HELO mail-pa0-f47.google.com) (209.85.220.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 17 Oct 2013 03:40:02 +0000 Received: by mail-pa0-f47.google.com with SMTP id kp14so2057285pab.20 for ; Wed, 16 Oct 2013 20:40:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=7bv2IAaNShvY2eAegOXFJGk4QIIBpeaoCixiC+0TOkc=; b=GyMKUr5WbEgynSiWeGF+mE3zPnjcvGwuRRORLL6sD1sV0cC2MglPhQ+Ebi2vErw9cR 32gn4Mq4XnDvj7n1qe9ZXxQ8kRxQRjlcjvhJPzfISVZFurfncArke0I1G9e+S/2ez/3o q4s6d5Ux/V7f1dIjIINv3UmNK3ufykp2xhuwZJeNosGWPN/c18wHGW3UTi3NB0QBKhik sxUd6cg6aK3a32H2ba/d57WsSlGXGg7cMYzrzpVRQulGUT0PmObhJwwBuv3m4wZmgnMw q/lSGD/COLP2Q2XeXIjdYhYQMiFOBXwmt2B2mjnRmlKqPYj36G0zuCildjfihpCsT0zV VqTQ== X-Gm-Message-State: ALoCoQm6xEPtvhhbL2YX1DYKrIbU1eQo/9FQ6jCGVFKM1mwxPhUhfR7LvfApWjUvj93B++H4r5yh X-Received: by 10.68.196.227 with SMTP id ip3mr6098399pbc.163.1381981200509; Wed, 16 Oct 2013 20:40:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.189.226 with HTTP; Wed, 16 Oct 2013 20:39:40 -0700 (PDT) From: net_robber Date: Thu, 17 Oct 2013 03:40:00 -0000 Message-ID: Subject: how could make gcc link static library default? To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00048.txt.bz2 hi, i know a option -static to force gcc link static library, which will ignore shared library. but in my case, some library just have shared library. so, is want gcc linlk static library first, then shared library if static one was not found how to do that?