* [Buildroot] [PATCH] libpjsip: fix m68k uclinux compile
@ 2016-08-06 13:25 Luca Ceresoli
2016-08-06 19:56 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Luca Ceresoli @ 2016-08-06 13:25 UTC (permalink / raw)
To: buildroot
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 <luca@lucaceresoli.net>
Cc: Waldemar Brodkorb <wbx@openadk.org>
---
package/libpjsip/libpjsip.mk | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk
index ebb5897d0973..5e36cafe577d 100644
--- a/package/libpjsip/libpjsip.mk
+++ b/package/libpjsip/libpjsip.mk
@@ -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 \
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] libpjsip: fix m68k uclinux compile
2016-08-06 13:25 [Buildroot] [PATCH] libpjsip: fix m68k uclinux compile Luca Ceresoli
@ 2016-08-06 19:56 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-08-06 19:56 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 6 Aug 2016 15:25:48 +0200, Luca Ceresoli wrote:
> +LIBPJSIP_CFLAGS=$(TARGET_CFLAGS) -DPJ_HAS_IPV6=1
One space before and after the = sign.
Committed with this minor typo fixed. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-06 19:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-06 13:25 [Buildroot] [PATCH] libpjsip: fix m68k uclinux compile Luca Ceresoli
2016-08-06 19:56 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox