public inbox for gentoo-devhelp@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-devhelp] How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS?
@ 2011-05-17  3:48 Nikos Chantziaras
  2011-05-17  4:49 ` [gentoo-devhelp] " Nikos Chantziaras
  0 siblings, 1 reply; 10+ messages in thread
From: Nikos Chantziaras @ 2011-05-17  3:48 UTC (permalink / raw
  To: gentoo-devhelp

I wrote an ebuild for a software that uses SCons as its build system. My 
guide was scons-utils.eclass and some other ebuilds that were using it. 
It pretty much boils down to:

   src_compile()
   {
	tc-export CC CXX
	append-cflags -Wno-error
	append-cxxflags -Wno-error
	escons PREFIX=/usr DESTDIR="${D}" || die
   }

   src_install()
   {
	escons PREFIX=/usr DESTDIR="${D}" install || die
   }

But it ignores the CFLAGS/CXXFLAGS/LDFLAGS set in make.conf, and 
append-cflags and append-cxxflags does nothing (-Wno-error is not used 
in the resulting build.)

I'm not sure where to go from here.




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-05-17 19:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-17  3:48 [gentoo-devhelp] How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS? Nikos Chantziaras
2011-05-17  4:49 ` [gentoo-devhelp] " Nikos Chantziaras
2011-05-17  5:14   ` Nathan Phillip Brink
2011-05-17  5:23     ` Nikos Chantziaras
2011-05-17  6:45       ` Peter Volkov
2011-05-17  7:18         ` Nikos Chantziaras
2011-05-17  8:57           ` Peter Volkov
2011-05-17 15:40             ` Nikos Chantziaras
2011-05-17 18:58               ` Peter Volkov
2011-05-17 19:12                 ` Nikos Chantziaras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox