Gentoo Archives: gentoo-user

From: Ian Zimmerman <itz@×××××××.net>
To: gentoo-user@l.g.o
Subject: [gentoo-user] ebuild: package specific CFLAGS
Date: Sat, 29 Apr 2017 02:10:58
Message-Id: 20170429020556.22304.283E59D8@matica.foolinux.mooo.com
1 I'm trying to create an ebuild of a crufty old program that needs
2 -fgnu89-inline in compiler flags to have any chance of building.
3
4 What's the way to do that in an ebuild? I could have something like
5
6 src_configure() {
7 econf $(use_enable nls) CFLAGS=-fgnu89-inline
8 }
9
10 but then, will this not _override_ (rather than add to, as desired) the
11 CFLAGS from make.conf?
12
13 --
14 Please *no* private Cc: on mailing lists and newsgroups
15 Personal signed mail: please _encrypt_ and sign
16 Don't clear-text sign:
17 http://primate.net/~itz/blog/the-problem-with-gpg-signatures.html

Replies

Subject Author
Re: [gentoo-user] ebuild: package specific CFLAGS John Covici <covici@××××××××××.com>
Re: [gentoo-user] ebuild: package specific CFLAGS Neil Bothwick <neil@××××××××××.uk>
[gentoo-user] Re: ebuild: package specific CFLAGS Jonathan Callen <jcallen@g.o>