sys-process/glances: 3.1.4.1-r1 amd64 stable, bug #720368
[gentoo.git] / app-misc / splitvt / files / 1.6.6-ldflags.patch
1 diff --git a/config.c b/config.c
2 index 6e8b090..2f3c8dc 100644
3 --- a/config.c
4 +++ b/config.c
5 @@ -229,15 +229,15 @@ char *argv[];
6         }
7         fprintf(makefile, 
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");
18  #else
19 -       fprintf(makefile, "\t$(CC) -o $@ $(OBJS) $(LIBS)\n");
20 +       fprintf(makefile, "\t$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)\n");
21  #endif
22         fprintf(makefile, "\nclean: \n\trm -f *.o core \n");
23         fprintf(makefile, "\ndistclean: clean\n\trm -f splitvt Makefile\n");