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