From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12794 invoked by alias); 7 Oct 2013 06:50:24 -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 12783 invoked by uid 89); 7 Oct 2013 06:50:24 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f42.google.com Received: from mail-pa0-f42.google.com (HELO mail-pa0-f42.google.com) (209.85.220.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 07 Oct 2013 06:50:23 +0000 Received: by mail-pa0-f42.google.com with SMTP id lj1so6910980pab.15 for ; Sun, 06 Oct 2013 23:50:21 -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:sender:from:date:message-id:subject :to:content-type; bh=aSHQ2x8/BVU0cqD9dRA+dz0KcPaim/x8YEdTML5Z5wo=; b=jn0oeVRA+ySoGFcsWHIhk6ULUo7KFAmwNlzhiczc5piJY/tfxzV0rEBgfGB3rkgA8c IYtSkRgVhIQHDCyj34OIpEB5RQJyso8NGvje1j753hE7WTTrq96/UyM2ug6FU90UpyA1 X3f3YwikLP+nfpcc7inB2SOt/7yb5CX+y2/ubySSkz+nf9maSTEuXG52Ji8ZfFx/xSdX jt/oxnnSj80evu535XueXUpWmrdYcGX7A0w4oWQwP7oYU+d4qza6PJXtQpPeH+Z64rsg No2MK4X1PFHZ7qdrAcMHKo+aGPa/eRbRUDSIyuYJW4wNpnterK14YivKwvOiGkaU7nzc 22fw== X-Gm-Message-State: ALoCoQn+nfLs8k6oichqVlMmiYzHwHRrhZPLB14xAgIhKGpbN2cLljC/Q+rgEZyVgurRSqIhlrkj X-Received: by 10.68.172.66 with SMTP id ba2mr29310071pbc.92.1381128621820; Sun, 06 Oct 2013 23:50:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.189.226 with HTTP; Sun, 6 Oct 2013 23:50:01 -0700 (PDT) From: CNZhangQuan Date: Mon, 07 Oct 2013 06:50:00 -0000 Message-ID: Subject: how to compile glibc with -fPIC? To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00004.txt.bz2 hi, i want to build a 'static toolchain', with option --disable-shared, for no shared library include/depend in the toolchain-self cause i don't want the target binary runs depend on the toolchain, such as libc.so, ld-xxx.so. but when the target binary need the function dlopen, it give a build error that libc.a need to recompile with -fPIC so, how to compile glibc with -fPIC? or maybe i should ask is it possible to gen a shared library with static toolchain? thanks Quan 2013-10-07