# Gtkmozembed compiles with unneeded flags

**URL:** <https://www.ruby-forum.com/t/gtkmozembed-compiles-with-unneeded-flags/65057>\
**Category:** Ruby-Gnome 2\
**Created:** [August 15, 2006, 10:21pm UTC](https://www.ruby-forum.com/t/gtkmozembed-compiles-with-unneeded-flags/65057 "2006-08-15T22:21:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [August 15, 2006, 10:21pm UTC](https://www.ruby-forum.com/t/gtkmozembed-compiles-with-unneeded-flags/65057/1 "2006-08-15T22:21:46Z")

</div>

Hi,

I noticed that the extconf.rb of gtkmozembed uses things like  
-DDEFAULT\_MOZILLA\_FIVE\_HOME for CFLAGS and -rpath in LDFLAGS… While  
those  
were indeed needed for embedding mozilla and probably firefox, it’s  
not  
needed for xulrunner. Especially -rpath is quite ugly for  
distributors.

I’ve attached a simple patch to remove the unneeded flags. Another  
possibility would be to only add the flags when compiling against  
firefox or  
mozilla… Comments ?

Sjoerd
