From: Ian Romanick Date: Sat, 2 Jul 2005 07:12:44 +0000 (+0000) Subject: Add $(CFLAGS) to the link commands. This makes 'make linux-x86 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f178c6e3a95848257edc4623c72fb0a8eebf282;p=mesa.git Add $(CFLAGS) to the link commands. This makes 'make linux-x86 ARCH_FLAGS=-m32' work correctly on x86-64 systems. --- diff --git a/progs/xdemos/Makefile b/progs/xdemos/Makefile index ddd1b0bfee8..bff6b71ca48 100644 --- a/progs/xdemos/Makefile +++ b/progs/xdemos/Makefile @@ -51,10 +51,10 @@ clean: # special cases pbinfo: pbinfo.o pbutil.o - $(CC) pbinfo.o pbutil.o $(APP_LIB_DEPS) -o $@ + $(CC) $(CFLAGS) pbinfo.o pbutil.o $(APP_LIB_DEPS) -o $@ pbdemo: pbdemo.o pbutil.o - $(CC) pbdemo.o pbutil.o $(APP_LIB_DEPS) -o $@ + $(CC) $(CFLAGS) pbdemo.o pbutil.o $(APP_LIB_DEPS) -o $@ pbinfo.o: pbinfo.c pbutil.h $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbinfo.c @@ -66,13 +66,13 @@ pbutil.o: pbutil.c pbutil.h $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbutil.c glxgears_fbconfig: glxgears_fbconfig.o pbutil.o - $(CC) glxgears_fbconfig.o pbutil.o $(APP_LIB_DEPS) -o $@ + $(CC) $(CFLAGS) glxgears_fbconfig.o pbutil.o $(APP_LIB_DEPS) -o $@ glxgears_fbconfig.o: glxgears_fbconfig.c pbutil.h - $(CC) -c -I. -I$(INCDIR) $(CFLAGS) glxgears_fbconfig.c + $(CC) $(CFLAGS) -c -I. -I$(INCDIR) $(CFLAGS) glxgears_fbconfig.c xrotfontdemo: xrotfontdemo.o xuserotfont.o - $(CC) xrotfontdemo.o xuserotfont.o $(APP_LIB_DEPS) -o $@ + $(CC) $(CFLAGS) xrotfontdemo.o xuserotfont.o $(APP_LIB_DEPS) -o $@ xuserotfont.o: xuserotfont.c xuserotfont.h $(CC) -c -I. -I$(INCDIR) $(CFLAGS) xuserotfont.c