Index | Thread | Search

From:
"John Ericson" <git@JohnEricson.me>
Subject:
Re: [PATCH] makefiles: Introduce `NOLIBSHARED`
To:
"Theo de Raadt" <deraadt@openbsd.org>
Cc:
"Miod Vallat" <miod@online.fr>, tech@openbsd.org
Date:
Tue, 02 Jul 2024 10:44:27 -0400

Download raw body.

Thread
On Mon, Jul 1, 2024, at 7:23 PM, Theo de Raadt wrote:
> John Ericson <git@JohnEricson.me> wrote:
> 
> > On one hand, yes. Based on my last patch, I didn't think you would like this patch, for precisely these reasons. On the other hand, I am not sure what makes the extant NOPIC and NOLIBSTATIC better than NOLIBSHARED in these regards. Therefore, I thought I would submit this patch anyways.
> 
> If you don't know what the purpose of these things are, then why
> do you suddenly strive for making new ones?
> 
> I think you are not being honest.

I did not know the purpose of those. I did some spelunking just now to being to figure out.

NOLIBSTATIC:

Added for LLVM

(in official git mirror)

d5b71dfc23bf71c1f5feab32c907f18f25350204
fac73c73f4589c9cc4ac1fdb4c11c1065012f818

NOPIC:

Dates back to NetBSD, used for some arches, also defined for various libraries for reason I know not.

----

I am using NOLIBSHARED because when I cross compile binaries for OpenBSD my shared-linked ones don't run, while my statically-linked ones do. This is presumably because I need to grab more LLVM and LLD patches than I have done so, so far. You can see the work in https://github.com/obsidiansystems/nixpkgs/tree/openbsd-rollup if you want. You can see me trying to upstream the first of these patches in https://github.com/llvm/llvm-project/pull/97122 and https://github.com/llvm/llvm-project/issues/97124 too.

There, that's a full technical disclosure.

John