libpjsip: fix m68k uclinux compile
PATCH 1/1 libpjsip: fix m68k uclinux compile
The GCC manual suggest when getting:
relocation truncated to fit: R_68K_GOT16O foobar
to use -mxgot.
Fixes:
http://autobuild.buildroot.org/results/e8c/e8cdfaf8e2da29a855b5bc09774f3aadee087737/
Signed-off-by Luca Ceresoli <[email protected]>
Cc Waldemar Brodkorb <[email protected]>
--- package/libpjsip/libpjsip.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
package/libpjsip/libpjsip.mk +8 -1
@@ -13,9 +13,16 @@ LIBPJSIP_LICENSE_FILES = COPYING LIBPJSIP_INSTALL_STAGING = YES LIBPJSIP_MAKE = $(MAKE1) +LIBPJSIP_CFLAGS=$(TARGET_CFLAGS) -DPJ_HAS_IPV6=1 + +# relocation truncated to fit: R_68K_GOT16O +ifeq ($(BR2_m68k_cf),y) +LIBPJSIP_CFLAGS += -mxgot +endif + LIBPJSIP_CONF_ENV = \ LD="$(TARGET_CC)" \ - CFLAGS="$(TARGET_CFLAGS) -DPJ_HAS_IPV6=1" + CFLAGS="$(LIBPJSIP_CFLAGS)" LIBPJSIP_CONF_OPTS = \ --disable-sound \
Signature · 1 line
2.7.4
PATCH 1/1 libpjsip: fix m68k uclinux compile
Hello,
Quoted 1 line · Luca Ceresoli
+LIBPJSIP_CFLAGS=$(TARGET_CFLAGS) -DPJ_HAS_IPV6=1
One space before and after the = sign.
Committed with this minor typo fixed. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com