[PATCH] GNU LD option export-dynamic can accept single dash flag

Joerg Sonnenberger joerg at britannica.bec.de
Mon Jan 19 13:20:09 PST 2015


On Mon, Jan 19, 2015 at 03:57:50PM -0500, Ed Maste wrote:
> On 19 January 2015 at 11:32, Joerg Sonnenberger <joerg at britannica.bec.de> wrote:
> > On Sun, Jan 18, 2015 at 10:28:27PM +0000, Davide Italiano wrote:
> >> Some Makefiles on FreeBSD use -export-dynamic rather than --export-dynamic.
> >> We're gonna patch them in the FreeBSD tree, but as long as this is
> >> supposed to be a drop-in replacement for GNU ld, I think supporting
> >> single dash flag is fine.
> >
> > I dislike this for the overlap with the -e option.
> 
> It is unfortunate, but necessary if we want to aim for full GNU ld
> compatibility. Do we chase down various ld consumers and convince them
> to switch to --?

I've seen existing bugs around -export-dynamic with typos and the like,
so personally, I would prefer to handle it as error. In short: yes.

Joerg



More information about the llvm-commits mailing list