mailing list of musl libc
 help / color / mirror / code / Atom feed
* installation without root privileges
@ 2012-06-17 17:33 Bruno Haible
  2012-06-17 20:52 ` Szabolcs Nagy
  0 siblings, 1 reply; 2+ messages in thread
From: Bruno Haible @ 2012-06-17 17:33 UTC (permalink / raw)
  To: Rich Felker, musl

Hi,

When installing musl-0.9.1 according to the recipe of INSTALL, Option 1,

CC="gcc-32" \
  ./configure --prefix=/arch/x86-linux/inst-musl \
              --exec-prefix=/arch/x86-linux/inst-musl \
              --target=i686-unknown-linux-gnu \
              CC="gcc-32"

the "make install" ends like this:

...
install -D -m 644 include/wctype.h /arch/x86-linux/inst-musl/include/wctype.h
install -D -m 644 include/wordexp.h /arch/x86-linux/inst-musl/include/wordexp.h
install -D tools/musl-gcc /arch/x86-linux/inst-musl/bin/musl-gcc
ln -sf /arch/x86-linux/inst-musl/lib/libc.so /lib/ld-musl-i386.so.1 || true
ln: could not create symbolic link „/lib/ld-musl-i386.so.1“: Permission denied

But the /arch/x86-linux/inst-musl/lib/musl-gcc.specs, section *link,
contains a reference to the file /lib/ld-musl-i386.so.1 that could not be
installed. My solution was to change this to read:

*link:
%(old_link) -dynamic-linker /arch/x86-linux/inst-musl/lib/libc.so -nostdlib

Suggestion: When --disable-gcc-wrapper is not passed to configure (this is
what distinguishes "Option 1" from "Option 2", right?), don't even attempt
to put a symlink into /lib. Simply always put the libc.so's real filename
into the *link section of musl-gcc.specs. The drawback is that executables
built with musl can typically not be transferred to a different machine
(because that machine will likely use a different installation directory
for musl).

Bruno



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: installation without root privileges
  2012-06-17 17:33 installation without root privileges Bruno Haible
@ 2012-06-17 20:52 ` Szabolcs Nagy
  0 siblings, 0 replies; 2+ messages in thread
From: Szabolcs Nagy @ 2012-06-17 20:52 UTC (permalink / raw)
  To: musl

* Bruno Haible <bruno@clisp.org> [2012-06-17 19:33:26 +0200]:
> ln -sf /arch/x86-linux/inst-musl/lib/libc.so /lib/ld-musl-i386.so.1 || true
> ln: could not create symbolic link ???/lib/ld-musl-i386.so.1???: Permission denied
> 

the ldso install dir is a config option (syslibdir)
you can set it in config.mak by hand or use
./configure --syslibdir=/path

(this takes care of the specfile as well)
(and yes this path will be hardcoded into the
dynamically linked executables)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-17 20:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-17 17:33 installation without root privileges Bruno Haible
2012-06-17 20:52 ` Szabolcs Nagy

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).