Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 20 Sep 2012 18:34:49 +0200 (CEST)
From: Jens <>
Subject: Re: musl-gcc question

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
LDFLAGS = -Wl,--hash-style=both -static
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

-nostdinc -isystem /opt/musl/include %(old_cpp_options)

%(cc1_cpu) -nostdinc -isystem /opt/musl/include

-L/opt/musl/lib -L .%s

libgcc.a%s %:if-exists(libgcc_eh.a%s)

%{!shared: /opt/musl/lib/%{pie:S}crt1.o} /opt/musl/lib/crti.o 

%{shared|pie:crtendS.o%s;:crtend.o%s} /opt/musl/lib/crtn.o

-dynamic-linker /lib/ -nostdlib %{shared:-shared} 
%{static:-static} %{rdynamic:-export-dynamic}





Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.