ghostscript-native: Ensure the sys/time/h fix is applied for native builds
PATCH 1/1 ghostscript-native: Ensure the sys/time/h fix is applied for native builds
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.
---
meta/recipes-extended/ghostscript/ghostscript_9.04.bb +1 -0
@@ -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
Quoted 3 lines · Richard Purdie
On my system, the
sys/time.hheader is in a subdir off/usr/includewhich causes a build failure. Apply the target CFLAGS fix to native builds as well to address this.
hmmm I thought CFLAGS would be automtically translated with BBCLASSEXTEND = "native"
Quoted 23 lines
Signed-off-by Richard Purdie <[email protected]>---
meta/recipes-extended/ghostscript/ghostscript_9.04.bb +0
-0@@ -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=692426CFLAGS += "-DHAVE_SYS_TIME_H=1"
+BUILD_CFLAGS += "-DHAVE_SYS_TIME_H=1"inherit autotools
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 8 lines · Khem Raj
Quoted 3 lines · Richard Purdie
On my system, the
sys/time.hheader is in a subdir off/usr/includewhich causes a build failure. Apply the target CFLAGS fix to native builds as well to address this.hmmm I thought CFLAGS would be automtically translated with BBCLASSEXTEND = "native"
For native recipes, CFLAGS is replaced by BUILD_CFLAGS...
Cheers,
Richard
Quoted 11 lines · Richard Purdie
Quoted 8 lines · Khem Raj
Quoted 3 lines · Richard Purdie
On my system, the
sys/time.hheader is in a subdir off/usr/includewhich causes a build failure. Apply the target CFLAGS fix to native builds as well to address this.hmmm I thought CFLAGS would be automtically translated with BBCLASSEXTEND = "native"
For native recipes, CFLAGS is replaced by
BUILD_CFLAGS...
yes I see. A little niggle I was thinking of is that at present for a target recipe if something gets changed in CFLAGS or TARGET_CFLAGS that makes to the compile phase as combined CFLAGS
for native we rewrite CFLAGS = BUILD_CFLAGS
So either CFLAGS += BUILD_FLAGS for native CFLAGS += TARGET_CFLAGS will make it consistent or just override CFLAGS with BUILD_CFLAGS or TARGET_CFLAGS depending on recipe type
Quoted 11 lines
Cheers,
Richard
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 18 lines · Khem Raj
Quoted 11 lines · Richard Purdie
Quoted 8 lines · Khem Raj
Quoted 3 lines · Richard Purdie
On my system, the
sys/time.hheader is in a subdir off/usr/includewhich causes a build failure. Apply the target CFLAGS fix to native builds as well to address this.hmmm I thought CFLAGS would be automtically translated with BBCLASSEXTEND = "native"
For native recipes, CFLAGS is replaced by
BUILD_CFLAGS...yes I see. A little niggle I was thinking of is that at present for a target recipe if something gets changed in CFLAGS or
TARGET_CFLAGSthat makes to the compile phase as combined CFLAGS
Quoted 5 lines
for native we rewrite CFLAGS =
BUILD_CFLAGSSo either CFLAGS +=
BUILD_FLAGSfor native CFLAGS +=TARGET_CFLAGSwill make it consistent or just override CFLAGS withBUILD_CFLAGSorTARGET_CFLAGSdepending on recipe type
We could do with looking into addressing this inconsistency, yes.
Cheers,
Richard