|
Message-Id: <20151104173955.dc30d64f61e5ec441c34ffd4f788e58e.50d5ba8c08.wbe@email15.secureserver.net>
Date: Wed, 04 Nov 2015 17:39:55 -0700
From: <writeonce@...ipix.org>
To: musl@...ts.openwall.com
Subject: PE target support in configure & Makefile
Greetings,
As many of you know, musl has been ported to winnt (and has an already
working bash/dash, core shell utilities, and a native toolchain) without
applying any patches to the upstream source tree.[1] Thus far, however,
we have been building musl using a deviant script that we now hope to
retire.
As musl's build system is currently being revisited, I would like
propose (with the attached patch as a reference) the addition of the
following features:
1. add rules for $(ARCH)/%.c: C-language arch-specific files.
2. --arch=ARCH: alternate arch-specific source files.
at the present, ARCH is derived from TARGET and has no corresponding
configure switch. Adding --arch support would allow setting nt32 and
nt64 as the arch directories for winnt's i686 and x86_64 targets,
respectively.
3. PE target detection, shared library linker flags.
at the present, musl's configure script assumes ELF targets as well as
its own loader routine (_dlstart). PE target support could be added with
only a minimal effort if we a) detect PE targets using the compiler, and
b) set PE/ELF-specific linker flags accordingly.
Best regards,
z.g.
[1] git://midipix.org/mmglue
View attachment "musl-pe-support.patch" of type "text/x-diff" (3435 bytes)
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.