Skip to contentSkip to conversation

libpjsip: fix m68k uclinux compile

PATCH New Luca Ceresoli 2 participants 2 messages Aug 6, 2016

lore
Share & tools
lore
#0 lore raw

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/

Cc Waldemar Brodkorb <[email protected]>
---
 package/libpjsip/libpjsip.mk | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
package/libpjsip/libpjsip.mk +8 -1
index ebb5897d0973..5e36cafe577d 100644
@@ -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
#1 lore raw

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