# Configure $B$,@8@.$9$k(B CFLAGS/cflags

**URL:** <https://www.ruby-forum.com/t/configure-b-8-9-k-b-cflags-cflags/139802>\
**Category:** Development\
**Created:** [June 7, 2008, 6:13am UTC](https://www.ruby-forum.com/t/configure-b-8-9-k-b-cflags-cflags/139802 "2008-06-07T06:13:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pegacorn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/cdc98d/32.png) [@pegacorn](https://www.ruby-forum.com/u/pegacorn)\
**Post date:** [June 7, 2008, 6:13am UTC](https://www.ruby-forum.com/t/configure-b-8-9-k-b-cflags-cflags/139802/1 "2008-06-07T06:13:47Z")

</div>

pegacorn e$B$G$9!#e(B

r16800 e$B$NJQ99$G!"e(Bconfigure e$B$,@8@.$9$ke(B CFLAGS/cflags e$B$,e(B  
e$B$h$/$o$+$i$J$$$3$H$K$J$C$F$$$k$N$G$9$,!"e(B  
e$B$3$l$O0U?^$7$?F0:n$G$7$g$&$+!)e(B

e$B"!e(Br16800

- configure.in (CFLAGS, CXXFLAGS): include additional flags to  
CFLAGS and CXXFLAGS while configuration.

e$B!&e(B./configure e$B$H$7$?\>l9ge(B

> Makefile\>  
> CFLAGS =  
> cflags = ${optflags} ${debugflags} ${warnflags}  
> optflags = -O2  
> debugflags = -g  
> warnflags = -Wall -Wno-parentheses  
> CPPFLAGS = $(DEFS) ${cppflags}  
> \<\<

e$B!&e(B./configure CFLAGS=’-std=c99’ CPPFLAGS=’-std=c99’  
e$B$H$7$?\>l9ge(B

> Makefile\>  
> CFLAGS = -std=c99  
> cflags = ${optflags} ${debugflags} ${warnflags}  
> optflags = -O2  
> debugflags = -g  
> warnflags = -Wall -Wno-parentheses  
> CPPFLAGS = -std=c99 $(DEFS) ${cppflags}  
> \<\<

e$B!&e(B./configure cflags=’-std=c99’ cppflags=’-std=c99’  
e$B$H$7$?\>l9ge(B

> Makefile\>  
> CFLAGS = ${cflags}  
> cflags = ${optflags} ${debugflags} ${warnflags}  
> optflags = -O2  
> debugflags = -g  
> warnflags = -Wall -Wno-parentheses  
> CPPFLAGS = $(DEFS) ${cppflags}  
> \<\<

e$B"!e(Br16799  
e$B!&e(B./configure e$B$H$7$?\>l9ge(B

> Makefile\>  
> CFLAGS = ${cflags}  
> cflags = ${optflags} ${debugflags} ${warnflags}  
> optflags = -O2  
> debugflags = -g  
> warnflags = -Wall -Wno-parentheses  
> CPPFLAGS = $(DEFS) ${cppflags}  
> \<\<

e$B!&e(B./configure CFLAGS=’-std=c99’ CPPFLAGS=’-std=c99’  
e$B$H$7$?\>l9ge(B

> Makefile\>  
> CFLAGS = -std=c99 ${cflags}  
> cflags = ${optflags} ${debugflags} ${warnflags}  
> optflags = -O2  
> debugflags = -g  
> warnflags = -Wall -Wno-parentheses  
> CPPFLAGS = -std=c99 $(DEFS) ${cppflags}  
> \<\<

e$B!&e(B./configure cflags=’-std=c99’ cppflags=’-std=c99’  
e$B$H$7$?\>l9ge(B

> Makefile\>  
> CFLAGS = ${cflags}  
> cflags = ${optflags} ${debugflags} ${warnflags}  
> optflags = -O2  
> debugflags = -g  
> warnflags = -Wall -Wno-parentheses  
> CPPFLAGS = $(DEFS) ${cppflags}  
> \<\<

# e$B:#8e$O!"I,?$G$J$$%U%i%0$OA4$F\<+J,$G;XDj$7$m$H$$$&$3$H!)e(B

# e$B$G$b$=$&$9$k$H!"e(Bcflags e$B$r;D$7$F$$$k0UL#$,$J$$$h$&$J!De(B

---

<div class="post-metadata">

**Author:** ![pegacorn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/cdc98d/32.png) [@pegacorn](https://www.ruby-forum.com/u/pegacorn)\
**Post date:** [June 7, 2008, 3:38pm UTC](https://www.ruby-forum.com/t/configure-b-8-9-k-b-cflags-cflags/139802/2 "2008-06-07T15:38:41Z")

</div>

From: Nobuyoshi N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Date: Sat, 7 Jun 2008 22:09:52 +0900  
Message-Id: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> At Sat, 7 Jun 2008 13:12:05 +0900,  
> pegacorn wrote in [ruby-dev:34985]:
> 
> > r16800 e$B$NJQ99$G!"e(Bconfigure e$B$,@8@.$9$ke(B CFLAGS/cflags e$B$,e(B  
> > e$B$h$/$o$+$i$J$$$3$H$K$J$C$F$$$k$N$G$9$,!"e(B  
> > e$B$3$l$O0U?^$7$?F0:n$G$7$g$&$+!)e(B
> 
> e$BD\>$7$?$D$b$j$G$9!#e(B

e$B3NG’$7$^$7$?!#e(B

e$B!&e(B./configure e$B$H$7$?\>l9ge(B

> Makefile\>  
> CFLAGS = ${cflags}  
> cflags = ${optflags} ${debugflags} ${warnflags}  
> optflags = -O2  
> debugflags = -g  
> warnflags = -Wall -Wno-parentheses  
> \<\<

e$B!&e(B./configure CFLAGS=‘-std=c99’ e$B$H$7$?\>l9ge(B

> Makefile\>  
> CFLAGS = -std=c99 ${cflags}  
> cflags = ${optflags} ${debugflags} ${warnflags}  
> optflags = -O2  
> debugflags = -g  
> warnflags = -Wall -Wno-parentheses  
> \<\<

---

<div class="post-metadata">

**Author:** ![pegacorn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/cdc98d/32.png) [@pegacorn](https://www.ruby-forum.com/u/pegacorn)\
**Post date:** [June 7, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/configure-b-8-9-k-b-cflags-cflags/139802/3 "2008-06-07T15:11:38Z")

</div>

e$B$J$+$@$G$9!#e(B

At Sat, 7 Jun 2008 13:12:05 +0900,  
pegacorn wrote in [ruby-dev:34985]:

> r16800 e$B$NJQ99$G!"e(Bconfigure e$B$,@8@.$9$ke(B CFLAGS/cflags e$B$,e(B  
> e$B$h$/$o$+$i$J$$$3$H$K$J$C$F$$$k$N$G$9$,!"e(B  
> e$B$3$l$O0U?^$7$?F0:n$G$7$g$&$+!)e(B

e$BD\>$7$?$D$b$j$G$9!#e(B
