Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Cc: Sebastian Pipping <sping@g.o>
Subject: Re: [gentoo-dev] [rfc] Making a Makefile respect custom CFLAGS
Date: Mon, 23 Aug 2010 21:42:08
Message-Id: 201008231744.52702.vapier@gentoo.org
In Reply to: [gentoo-dev] [rfc] Making a Makefile respect custom CFLAGS by Sebastian Pipping
1 On Monday, August 23, 2010 17:01:10 Sebastian Pipping wrote:
2 > CFLAGS=`sdl-config --cflags` -Wall -Wextra
3 > LDFLAGS=`sdl-config --libs`
4
5 SDL_CONFIG = sdl-config
6 CPPFLAGS += `$(SDL_CONFIG) --cflags`
7 CFLAGS += -Wall -Wextra
8 LDLIBS += `$(SDL_CONFIG) --libs`
9
10 although the SDL_CONFIG is crap anyways and you should be using autoconf
11
12 and using gcc-specific-ish flags like -Wall -Wextra while not using GNU make
13 seems kind of dumb.
14
15 > Now how would we fix this to respect custom CFLAGS (and LDFLAGS) in a
16 > way that does not require GNU make (i.e. simply-expanded variables):
17
18 why is that a problem ? everyone and their dog has `gmake`.
19 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature