summaryrefslogtreecommitdiffstats
path: root/progs/fp/Makefile
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2008-07-30 07:56:42 -0700
committerDan Nicholson <dbn.lists@gmail.com>2008-07-30 07:56:42 -0700
commit3e8e292db0794a4d2dda1605f86e8f71dbf1d661 (patch)
tree084bc2e62e84afa95df02a4897cc7f0449164921 /progs/fp/Makefile
parentb068ab62a0433b6a92374c83f153b3c9ac4b4e5e (diff)
downloadexternal_mesa3d-3e8e292db0794a4d2dda1605f86e8f71dbf1d661.zip
external_mesa3d-3e8e292db0794a4d2dda1605f86e8f71dbf1d661.tar.gz
external_mesa3d-3e8e292db0794a4d2dda1605f86e8f71dbf1d661.tar.bz2
Always pass CFLAGS when compiling or linking demos
To ensure that the correct architecture flags are used, always pass the user's CFLAGS when compiling or linking the demos. Fixes #16860.
Diffstat (limited to 'progs/fp/Makefile')
-rw-r--r--progs/fp/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/progs/fp/Makefile b/progs/fp/Makefile
index 09f22d1..3e52474 100644
--- a/progs/fp/Makefile
+++ b/progs/fp/Makefile
@@ -72,7 +72,7 @@ UTIL_FILES = readtex.h readtex.c
.SUFFIXES: .c
.c:
- $(CC) $(INCLUDES) $(CFLAGS) $< $(LIBS) -o $@
+ $(CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
.c.o:
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
@@ -99,13 +99,13 @@ getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.
texrect: texrect.o readtex.o
- $(CC) texrect.o readtex.o $(LIBS) -o $@
+ $(CC) $(CFLAGS) $(LDFLAGS) texrect.o readtex.o $(LIBS) -o $@
texrect.o: texrect.c readtex.h
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
invert: invert.o readtex.o
- $(CC) invert.o readtex.o $(LIBS) -o $@
+ $(CC) $(CFLAGS) $(LDFLAGS) invert.o readtex.o $(LIBS) -o $@
invert.o: invert.c readtex.h
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@