mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Request for ideas on arch-specific musl-gcc specfile additions
Date: Sun, 14 Apr 2013 21:31:54 -0400	[thread overview]
Message-ID: <20130415013154.GA7440@brightrain.aerifal.cx> (raw)

Right now, musl-gcc has problems on at least a few archs:

- powerpc: it does not setup the right secure-plt options for dynamic
  linking.

- mips: gcc's internals on mips expect the -EL and -EB options to work
  for selecting endianness, but they're not real options; they're
  created by the specfile

- any arch with 32/64-bit variants: if -m32 or -m64 was used building
  musl, it should get added to the specfile for musl-gcc.

I'm looking for a clean approach to fixing this. Certainly the
configure script could just generate one or more extra variables that
get stored in config.mak and substituted into the specfile, but I'd
rather avoid having essential logic like this in configure, as it
makes it difficult for anybody who wants to generate config.mak by
hand. If there are specific options always needed on a given arch, the
build process (even without configure being used) should automatically
add them to the specfile.

Any good proposals?

Rich


             reply	other threads:[~2013-04-15  1:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-15  1:31 Rich Felker [this message]
2013-04-15  4:31 ` Zvi Gilboa
2013-04-15  4:49   ` Rich Felker
2013-04-15  5:35     ` Zvi Gilboa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130415013154.GA7440@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).