mailing list of musl libc
 help / color / mirror / code / Atom feed
* Feature request: building musl in a portable way
@ 2017-12-21 16:25 ardi
  2017-12-21 21:38 ` Rich Felker
  0 siblings, 1 reply; 13+ messages in thread
From: ardi @ 2017-12-21 16:25 UTC (permalink / raw)
  To: musl

Hi,

Related (and as an alternative) to a previous post I made asking about
a way of isolating direct syscalls, I'm thinking about the possibility
of building musl in a way where functions that need to perform
syscalls aren't compiled, so this special compiled version of musl
would have only the functions that don't make syscalls from
themselves.

The purpose is being able to run code in system other than Linux,
replacing such functions by calls to the related functions of the
system host (provided that functions follow POSIX requirements, of
course).

Obviously, I can get this feature by modifying musl, but I'd prefer
not to modify it, because I'd like to be able to update musl to the
last version easily, and if I use a modified/customized musl version,
updating it would require merging, and possibly hard work.

If there was some way of having a switch in the build system so that
all functions that make syscalls are not compiled, I could use musl
without modifying it. Maybe the most elegant way of doing this would
be by tagging such functions with an special tag, like
"__function_makes_syscall__" or whatever. But I'm not sure.

Cheers, and thanks a lot,

ardi


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

end of thread, other threads:[~2017-12-23 20:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-21 16:25 Feature request: building musl in a portable way ardi
2017-12-21 21:38 ` Rich Felker
2017-12-22 16:09   ` ardi
2017-12-22 16:43     ` Rich Felker
2017-12-22 19:04       ` ardi
2017-12-23  8:18         ` Markus Wichmann
2017-12-23 20:57           ` ardi
2017-12-22 17:10     ` Nicholas Wilson
2017-12-22 17:49       ` Rich Felker
2017-12-22 18:01         ` Nicholas Wilson
2017-12-22 18:08           ` Rich Felker
2017-12-22 19:06             ` Nicholas Wilson
2017-12-22 19:27       ` ardi

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).