From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8869 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Support for multiarch/multilib Date: Tue, 17 Nov 2015 16:06:53 +0100 Message-ID: <20151117150650.GE18372@port70.net> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1447772943 26303 80.91.229.3 (17 Nov 2015 15:09:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2015 15:09:03 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8882-gllmg-musl=m.gmane.org@lists.openwall.com Tue Nov 17 16:08:49 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Zyhqg-0002NF-9Y for gllmg-musl@m.gmane.org; Tue, 17 Nov 2015 16:07:10 +0100 Original-Received: (qmail 30719 invoked by uid 550); 17 Nov 2015 15:07:08 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 30693 invoked from network); 17 Nov 2015 15:07:07 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Xref: news.gmane.org gmane.linux.lib.musl.general:8869 Archived-At: * Petr Hosek [2015-11-17 06:15:20 +0000]: > We're using musl in multiarch/multilib setup (i386/x86-64) and it works > fine, except for header duplication. Given two architectures, > i386-linux-gnu and x86_64-linux-gnu, I'd like to install the shared headers > into /usr/include, and install bits (what is normally in include/bits) for > each architecture into the respective subfolders > /usr/include/i386-linux-gnu/bits and /usr/x86_64-linux-gnu. > multiarch should make it possible to support multiple abis on the same host.. but currently that's not the case, there are headers shared across abis. $ARCH-linux-gnu is certainly not the right name for musl as it conflicts with glibc. > I can obviously achieve by copying/moving files after install, but I'd > prefer to have the support for that scenario directly in the Makefile. > Would you accept such patch? > > There are two possible ways to implements this I can think of: (1) add a > separate targets such as install-arch-headers and install-generic-headers, > or (2) define additional Makefile variable such as includebits which would > be set to $(includedir)/bits by default but could be overridden when > invoking make. Do you have strong preference for either of these solutions? i personally prefer something with make variables so make install does the right thing if i set my vars properly. (i assume you need the same for /usr/lib.) but i'm not sure if trying to support a particular flavour of multi* is a good idea at this point.