1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
diff --git a/config.c b/config.c
index 6e8b090..2f3c8dc 100644
--- a/config.c
+++ b/config.c
@@ -229,15 +229,15 @@ char *argv[];
}
fprintf(makefile,
"PTYOPTS = -DPTYCHAR=$(PTYCHAR) -DHEXDIGIT=$(HEXDIGIT)\n");
- sprintf(line, "\nCFLAGS = -Wall %s $(PTYOPTS)\nLIBS = %s\n", cflags, ldflags);
+ sprintf(line, "\nCFLAGS = %s $(PTYOPTS)\nLIBS = %s\n", cflags, ldflags);
fprintf(makefile, "%s", line);
fprintf(makefile, "OBJS = splitvt.o misc.o utmp.o vt100.o videomem.o terminal.o vttest.o vtmouse.o \\\n");
fprintf(makefile, " parserc.o lock.o cut-paste.o\n\n");
fprintf(makefile, "splitvt: $(OBJS)\n");
#if defined(linux) && !defined(DEBUG)
- fprintf(makefile, "\t$(CC) -o $@ $(OBJS) $(LIBS)\n");
+ fprintf(makefile, "\t$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)\n");
#else
- fprintf(makefile, "\t$(CC) -o $@ $(OBJS) $(LIBS)\n");
+ fprintf(makefile, "\t$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)\n");
#endif
fprintf(makefile, "\nclean: \n\trm -f *.o core \n");
fprintf(makefile, "\ndistclean: clean\n\trm -f splitvt Makefile\n");
|