rtmpdump: use TARGET_LDFLAGS instead of TARGET_CFLAGS for XLDFLAGS
authorFabio Porcedda <fabio.porcedda@gmail.com>
Tue, 10 Feb 2015 17:59:36 +0000 (18:59 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 14 Feb 2015 07:48:37 +0000 (08:48 +0100)
The XLDFLAGS is for ld related flags so use TARGET_LDFLAGS instead of
TARGET_CFLAGS, also the TARGET_CFLAGS is already used for XCFLAGS.

This fix is also needed for supporting the per-package staging directory.

Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/rtmpdump/rtmpdump.mk

index 14037fb18f2c5916432d15669a56c6809cab2b0d..613f1cd49ea204b848abc42529f1f9238e0b3ad5 100644 (file)
@@ -39,7 +39,7 @@ define RTMPDUMP_BUILD_CMDS
        $(MAKE) CRYPTO=$(RTMPDUMP_CRYPTO) \
                prefix=/usr \
                XCFLAGS="$(RTMPDUMP_CFLAGS)" \
-               XLDFLAGS="$(TARGET_CFLAGS)" \
+               XLDFLAGS="$(TARGET_LDFLAGS)" \
                CROSS_COMPILE="$(TARGET_CROSS)" \
                $(RTMPDUMP_SHARED) \
                -C $(@D)/librtmp