mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 22:26:31 +00:00
xlib_libXt: add patch to fix cross-compilation issue
Fixes the following build failure: http://autobuild.buildroot.org/results/2815885d589d75259508bcce4f272b8dddb3be77/build-end.log Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
dcc6bcd516
commit
cea473d8af
@ -0,0 +1,51 @@
|
|||||||
|
From 9324466141626518e5a67838813562ec6ef62ba3 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||||
|
Date: Thu, 15 Nov 2012 18:31:53 +0100
|
||||||
|
Subject: [PATCH] util: don't link makestrs with target cflags
|
||||||
|
|
||||||
|
The line:
|
||||||
|
|
||||||
|
makestrs_CFLAGS = $(XT_CFLAGS)
|
||||||
|
|
||||||
|
in util/Makefile.am is wrong because it adds target cflags to the
|
||||||
|
compilation of makestrs, which is built for the build machine, which
|
||||||
|
leads to build failures when cross-compiling.
|
||||||
|
|
||||||
|
We also remove the inclusion of <X11/Xos.h> from makestrs.c, because
|
||||||
|
it was the only non-standard header being included (and therefore
|
||||||
|
possibly requiring special cflags), but it was in reality not useful
|
||||||
|
at all to build makestrs.c.
|
||||||
|
|
||||||
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||||
|
---
|
||||||
|
util/Makefile.am | 1 -
|
||||||
|
util/makestrs.c | 1 -
|
||||||
|
2 files changed, 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/util/Makefile.am b/util/Makefile.am
|
||||||
|
index 969ecef..cc6f3fc 100644
|
||||||
|
--- a/util/Makefile.am
|
||||||
|
+++ b/util/Makefile.am
|
||||||
|
@@ -10,7 +10,6 @@ EXTRA_DIST = \
|
||||||
|
StrDefs.ht \
|
||||||
|
string.list
|
||||||
|
|
||||||
|
-makestrs_CFLAGS = $(XT_CFLAGS)
|
||||||
|
makestrs_SOURCES = makestrs.c
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/util/makestrs.c b/util/makestrs.c
|
||||||
|
index 3551cc1..456735b 100644
|
||||||
|
--- a/util/makestrs.c
|
||||||
|
+++ b/util/makestrs.c
|
||||||
|
@@ -27,7 +27,6 @@ in this Software without prior written authorization from The Open Group.
|
||||||
|
/* Constructs string definitions */
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
-#include <X11/Xos.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#if defined(macII) && !defined(__STDC__) /* stdlib.h fails to define these */
|
||||||
|
--
|
||||||
|
1.7.9.5
|
||||||
|
|
@ -10,5 +10,6 @@ XLIB_LIBXT_SITE = http://xorg.freedesktop.org/releases/individual/lib
|
|||||||
XLIB_LIBXT_INSTALL_STAGING = YES
|
XLIB_LIBXT_INSTALL_STAGING = YES
|
||||||
XLIB_LIBXT_DEPENDENCIES = xlib_libSM xlib_libX11 xproto_kbproto xproto_xproto xcb-proto libxcb host-xproto_xproto
|
XLIB_LIBXT_DEPENDENCIES = xlib_libSM xlib_libX11 xproto_kbproto xproto_xproto xcb-proto libxcb host-xproto_xproto
|
||||||
XLIB_LIBXT_CONF_OPT = --disable-malloc0returnsnull --disable-install-makestrs
|
XLIB_LIBXT_CONF_OPT = --disable-malloc0returnsnull --disable-install-makestrs
|
||||||
|
XLIB_LIBXT_AUTORECONF = YES
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user