Patchwork [2011-1,1/1] ghostscript-native: Ensure the sys/time/h fix is applied for native builds

login
register
mail settings
Submitter Joshua Lock
Date June 11, 2012, 11:58 p.m.
Message ID <4ee899dfeb0455877c923c5b9fc111ff755e76a6.1339458406.git.josh@linux.intel.com>
Download mbox | patch
Permalink /patch/29685/
State New
Headers show

Comments

Joshua Lock - June 11, 2012, 11:58 p.m.
From: Richard Purdie <richard.purdie@linuxfoundation.org>

On my system, the sys/time.h header is in a subdir off /usr/include
which causes a build failure. Apply the target CFLAGS fix to native
builds as well to address this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-extended/ghostscript/ghostscript_9.02.bb |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/meta/recipes-extended/ghostscript/ghostscript_9.02.bb b/meta/recipes-extended/ghostscript/ghostscript_9.02.bb
index 9b21c66..99c4f5c 100644
--- a/meta/recipes-extended/ghostscript/ghostscript_9.02.bb
+++ b/meta/recipes-extended/ghostscript/ghostscript_9.02.bb
@@ -40,6 +40,7 @@  EXTRA_OECONF = "--without-x --with-system-libtiff --without-jbig2dec --without-j
 # http://bugs.ghostscript.com/show_bug.cgi?id=692443
 # http://bugs.ghostscript.com/show_bug.cgi?id=692426
 CFLAGS += "-DHAVE_SYS_TIME_H=1"
+BUILD_CFLAGS += "-DHAVE_SYS_TIME_H=1"
 
 inherit autotools