[SCM] invada-ladspa/master: Added patch to pass flags correctly.
Felipe Sateler
fsateler at debian.org
Tue Mar 4 13:01:23 UTC 2014
On Tue, Mar 4, 2014 at 9:53 AM, Fabian Greffrath <fabian at greffrath.com> wrote:
> Am Dienstag, den 04.03.2014, 13:39 +0100 schrieb Jaromír Mikeš:
>> >> ++LD = gcc
>> >> ++LDFLAGS += -shared -lc -lm -L.
>> -linv_common
>
> Can someone please explain to me when LDFLAGS passed via gcc need to get
> prefixed with "-Wl," and when not?
-Wl means "pass this option to the linker". So options that are
consumed by the linker need -Wl (like the as needed option), and
options consumed by the compiler don't.
This is very unfortunate. I would have assumed that LDFLAGS means
"flags for the linker", but it appears it means "flags for gcc when
invoked for linking stuff".
--
Saludos,
Felipe Sateler
More information about the pkg-multimedia-maintainers
mailing list