diff options
Diffstat (limited to 'app-misc/splitvt/files/1.6.6-ldflags.patch')
-rw-r--r-- | app-misc/splitvt/files/1.6.6-ldflags.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app-misc/splitvt/files/1.6.6-ldflags.patch b/app-misc/splitvt/files/1.6.6-ldflags.patch new file mode 100644 index 000000000000..5a545ad98ee8 --- /dev/null +++ b/app-misc/splitvt/files/1.6.6-ldflags.patch @@ -0,0 +1,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"); |