On Mon, Sep 24, 2012 at 4:08 PM, Chris Larson <[email protected]> wrote: > On Mon, Sep 24, 2012 at 1:13 PM, McClintock Matthew-B29882 > <[email protected]> wrote: >> On Mon, Sep 24, 2012 at 2:55 PM, Matthew McClintock <[email protected]> >> wrote: >>> makekeys-makekeys.o: In function `main': >>> makekeys.c:(.text+0x85): undefined reference to `__isoc99_sscanf' >>> makekeys.c:(.text+0xa7): undefined reference to `__isoc99_sscanf' >>> collect2: ld returned 1 exit status >>> make: *** [makekeys] Error 1 >>> >>> Older libc do not have this defined, we can use the -D_GNU_SOURCE >>> to the compiler to prevent generating calls to this function and >>> make linking work >>> >>> Signed-off-by: Matthew McClintock <[email protected]> >>> --- >>> .../xorg-lib/libx11/use_host_cc_for_utils.patch | 12 ++++++++++++ >>> meta/recipes-graphics/xorg-lib/libx11_1.5.0.bb | 3 ++- >>> 2 files changed, 14 insertions(+), 1 deletion(-) >>> create mode 100644 >>> meta/recipes-graphics/xorg-lib/libx11/use_host_cc_for_utils.patch >>> >>> diff --git >>> a/meta/recipes-graphics/xorg-lib/libx11/use_host_cc_for_utils.patch >>> b/meta/recipes-graphics/xorg-lib/libx11/use_host_cc_for_utils.patch >>> new file mode 100644 >>> index 0000000..08ba39a >>> --- /dev/null >>> +++ b/meta/recipes-graphics/xorg-lib/libx11/use_host_cc_for_utils.patch >>> @@ -0,0 +1,12 @@ >>> +Index: libX11-1.5.0/src/Makefile.am >>> +=================================================================== >>> +--- libX11-1.5.0.orig/src/Makefile.am >>> ++++ libX11-1.5.0/src/Makefile.am >>> +@@ -420,6 +420,6 @@ ks_tables.h: $(KEYSYMDEFS) $(top_builddi >>> + mv ks_tables_h $@ >>> + >>> + $(top_builddir)/src/util/makekeys$(EXEEXT): force >>> +- cd util && $(MAKE) >>> ++ cd util && $(MAKE) CC=gcc CCLD=gcc LDFLAGS= CFLAGS=-D_GNU_SOURCE > > Isn't the makekeys build already using CC_FOR_BUILD? That's what is > implied by the libx11.inc export of those variables. So it seems a bit > unnecessary to pass in gcc expliciltly.
I think this is probably what I was looking for... will try to respin. -M > -- > Christopher Larson > > _______________________________________________ > Openembedded-core mailing list > [email protected] > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core _______________________________________________ Openembedded-core mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
