36 lines
887 B
Diff
36 lines
887 B
Diff
Compile tools to be run on the host using cc instead of $(CC).
|
|
Ideally the patch would introduce $(CC_FOR_BUILD) instead while
|
|
for Void we know that cc is going to work.
|
|
|
|
--- Makefile.in 2017-01-19 03:42:06.000000000 +0100
|
|
+++ Makefile.in 2018-01-01 19:33:18.233719865 +0100
|
|
@@ -1,5 +1,5 @@
|
|
CC=@CC@ -I.
|
|
-LFLAGS=-L.
|
|
+LFLAGS=@LDFLAGS@ -L.
|
|
CFLAGS=@CFLAGS@
|
|
AR=@AR@
|
|
RANLIB=@RANLIB@
|
|
@@ -83,6 +83,9 @@
|
|
blocktags: mktags
|
|
./mktags > blocktags
|
|
|
|
+mktags: mktags.c
|
|
+ cc -o $@ $<
|
|
+
|
|
# example programs
|
|
@THEME@theme: theme.o $(MKDLIB) mkdio.h
|
|
@THEME@ $(CC) $(CFLAGS) $(LFLAGS) -o theme theme.o pgm_options.o -lmarkdown @LIBS@
|
|
@@ -115,9 +118,9 @@
|
|
done
|
|
|
|
cols: tools/cols.c config.h
|
|
- $(CC) -o cols tools/cols.c
|
|
+ cc -o cols tools/cols.c
|
|
echo: tools/echo.c config.h
|
|
- $(CC) -o echo tools/echo.c
|
|
+ cc -o echo tools/echo.c
|
|
|
|
clean:
|
|
rm -f $(PGMS) $(TESTFRAMEWORK) $(SAMPLE_PGMS) *.o
|