[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Confuse-devel] [PATCH] Build with optimisations turned off (-O0)

From: Diego Pettenò
Subject: [Confuse-devel] [PATCH] Build with optimisations turned off (-O0)
Date: Mon, 29 Sep 2008 11:54:56 +0200


the attached patch makes confuse build when having optimisations turned
off in the compiler (-O0 or no -O flag at all); without this patch, it
fails this way:

 i686-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H
-I. -I. -I.. -Wall -pipe
-include /var/tmp/portage/dev-libs/confuse-2.6-r1/temp/flagscheck.h -MT
confuse.lo -MD -MP -MF .deps/confuse.Tpo -c confuse.c  -fPIC -DPIC
-o .libs/confuse.o
confuse.c: In function 'cfg_init':
confuse.c:1112: warning: implicit declaration of function 'setlocale'
confuse.c:1112: error: 'LC_MESSAGES' undeclared (first use in this
confuse.c:1112: error: (Each undeclared identifier is reported only once
confuse.c:1112: error: for each function it appears in.)
confuse.c:1113: error: 'LC_CTYPE' undeclared (first use in this

The reason here is that libintl.h only includes locale.h by side-effect
when optimisations are turned on, so to use setlocale() one should
include it explicitly.


Attachment: confuse-2.6-O0.patch
Description: Text Data

Attachment: signature.asc
Description: This is a digitally signed message part

reply via email to

[Prev in Thread] Current Thread [Next in Thread]