Order of -l options

Simon Marlow simonmar@microsoft.com
Tue, 20 Mar 2001 10:35:16 -0000


>             <para>Also, <literal>extra_libraries</literal> are placed
>             on the linker command line before the
>             <literal>hs_libraries</literal> for the same package.  If
>             your package has dependencies in the other direction, you
>             might need to make two separate packages.</para>
>=20
> Why this direction? If hs_libraries depend on extra_libraries, which
> is normally the case, and extra_libraries are static under Linux, this
> won't work. I would make the order the opposite.

The documentation is wrong, the order is the other way around.

Cheers,
	Simon