From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1963 Path: news.gmane.org!not-for-mail From: Jens Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl-gcc question Date: Thu, 20 Sep 2012 18:34:49 +0200 (CEST) Message-ID: References: <20120920160025.GV9428@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: ger.gmane.org 1348158902 6785 80.91.229.3 (20 Sep 2012 16:35:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Sep 2012 16:35:02 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1964-gllmg-musl=m.gmane.org@lists.openwall.com Thu Sep 20 18:35:07 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1TEjiU-0006vq-Ku for gllmg-musl@plane.gmane.org; Thu, 20 Sep 2012 18:35:06 +0200 Original-Received: (qmail 25831 invoked by uid 550); 20 Sep 2012 16:35:02 -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 25823 invoked from network); 20 Sep 2012 16:35:02 -0000 In-Reply-To: <20120920160025.GV9428@port70.net> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) Xref: news.gmane.org gmane.linux.lib.musl.general:1963 Archived-At: On Thu, 20 Sep 2012, Szabolcs Nagy wrote: > * Jens [2012-09-20 16:50:13 +0200]: >> If we look at the verbose output below it seems like -L/lib is a bad >> thing to have, since all the uclibc libs are there. >> >> musl is installed under /opt/musl. >> >> What have I missed? > > > please show the config.mak you have Thanks, file contents below. (Linewrapping has messed them up some). bash-4.1# cat /var/tmp/src/musl-0.9.6/config.mak # This version of config.mak was generated by configure # Any changes made here will be lost if configure is re-run ARCH = x86_64 prefix = /opt/musl exec_prefix = $(prefix) bindir = /usr/bin libdir = $(prefix)/lib includedir = $(prefix)/include syslibdir = /lib CC = gcc CFLAGS= -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables -falign-functions=1 -falign-labels=1 -falign-loops=1 -falign-jumps=1 -fno-stack-protector -Os -g CFLAGS_C99FSE = -std=c99 -nostdinc -ffreestanding -frounding-math CPPFLAGS = LDFLAGS = -Wl,--hash-style=both -static CROSS_COMPILE = LIBCC = -lgcc -lgcc_eh > > and the musl-gcc.specs file in the musl lib directory bash-4.1# cat /opt/musl/lib/musl-gcc.specs %rename cpp_options old_cpp_options *cpp_options: -nostdinc -isystem /opt/musl/include %(old_cpp_options) *cc1: %(cc1_cpu) -nostdinc -isystem /opt/musl/include *link_libgcc: -L/opt/musl/lib -L .%s *libgcc: libgcc.a%s %:if-exists(libgcc_eh.a%s) *startfile: %{!shared: /opt/musl/lib/%{pie:S}crt1.o} /opt/musl/lib/crti.o %{shared|pie:crtbeginS.o%s;:crtbegin.o%s} *endfile: %{shared|pie:crtendS.o%s;:crtend.o%s} /opt/musl/lib/crtn.o *link: -dynamic-linker /lib/ld-musl-x86_64.so.1 -nostdlib %{shared:-shared} %{static:-static} %{rdynamic:-export-dynamic} *esp_link: *esp_options: *esp_cpp_options: > >