From owner-freebsd-stable@freebsd.org Mon Feb 29 14:22:27 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3BDC7AB8F19 for ; Mon, 29 Feb 2016 14:22:27 +0000 (UTC) (envelope-from allbery.b@gmail.com) Received: from mail-vk0-x234.google.com (mail-vk0-x234.google.com [IPv6:2607:f8b0:400c:c05::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EB40964F for ; Mon, 29 Feb 2016 14:22:26 +0000 (UTC) (envelope-from allbery.b@gmail.com) Received: by mail-vk0-x234.google.com with SMTP id c3so134856213vkb.3 for ; Mon, 29 Feb 2016 06:22:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=tGc1mNXtfGQfLr6Uw6E74c9pVdFbqyPwOiAQpyVDN0s=; b=mXyUnzUWaPc8O6ozaGgtpOTldPn4j8iyjR4Ucx7/wrJeSTIqTB8InvAmgEzUY9Uymw xpiers7skq3WejDFwv5wC5kiAb78PIXkuFX60Otv+YMoK/yDb4Uj3zoHjoS7mN04PJx5 mT5h/nDZjPVwBOdfbwpXpIX7jCqAuC7tABfz2xbC85eJV4zApuISSckrDWA+OREVpMGJ Eq/Y8xnyiT4jDXcMLfCegdoTdCBAufeebJwG8fMyRgutu5QCyJ7oMXLR2Tb7Cnsb/V99 DKKqDsCWcUdfAXxJxuRQKXPFRvHrOdv8zoSZJSxFa0S7JZcU0chX4NRSZxn1kBPvyCEQ DlvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=tGc1mNXtfGQfLr6Uw6E74c9pVdFbqyPwOiAQpyVDN0s=; b=ErgPEMvfsw5r6LP8g/Mni8Cw2ftZuXv0uYg8riHdxumIlXtyWy3TH8+aBehJG1IvH6 OOe5FbCgxqSNpa/Qr059gDfLyyg6PrIXDS/2XTrO/vb1coWwPXXwlXJQoddzmPimiF3I YUtzvTHEcqbNUxtnSCjBxE5FIjtucNtcyBfKtXj8tquHb79mn/00TpjmJG7/BwMPwJUy 3JL13pvScTgF9BiE72lXl9yp23zkZcdKiFEbhx9ZNnarVyF7bhk/6jDHeGu0e7oNgtmo 7u3Ier4v2OU8UJp2b7LhNGQclo0vn4r2wO0jzDHr53BPDvG3lbqsvC7WPhaZgIXt31Dn CfTQ== X-Gm-Message-State: AD7BkJISLthtqcnNkEK1a5dJL2XUJjYxIRfb9PwLk0Ivql40WeHnvXjnFfZ8qXkNEzP0II2Jwv8IHEvMo4b+kQ== MIME-Version: 1.0 X-Received: by 10.31.14.149 with SMTP id 143mr11958211vko.3.1456755745553; Mon, 29 Feb 2016 06:22:25 -0800 (PST) Received: by 10.176.3.44 with HTTP; Mon, 29 Feb 2016 06:22:25 -0800 (PST) In-Reply-To: References: Date: Mon, 29 Feb 2016 09:22:25 -0500 Message-ID: Subject: Re: Problem with /usr/lib/libcrypt.a when building perl/python with libressl From: Brandon Allbery To: Dewayne Geraghty Cc: freebsd-stable stable Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Feb 2016 14:22:27 -0000 On Mon, Feb 29, 2016 at 4:05 AM, Dewayne Geraghty wrote: > I understand the value of fPIC for shareable libraries but I'm a little > confused as to why libcrypt.a requires -fPIC; which BTW does enable both > python, perl and others to build cleanly. > Both perl and python load crypto support as shared objects associated with their respective loadable modules. As such, you can't link non-PIC static objects into those shared objects on amd64 (although it works, pretty much by accident, on i386 32-bit). -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net