Skip to content

Commit

Permalink
Makefile: fix issue preventing parallel builds
Browse files Browse the repository at this point in the history
the explicit -lterminfo lead to ld trying to use the dynamic library
which was not yet entirely created even when TI_LINKLIB was set to use
the static one.
this caused build problems with -j8 on an octacore pc.
since the TI_LINKLIB is explicitly added to the command line, we can
just delete the gratuitous linker instructions.
  • Loading branch information
rofl0r committed Mar 22, 2016
1 parent b9e152c commit 88ce848
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,11 @@ $(TOOL_NBPERF): $(NBPERF_OBJS)

tset/tset: $(TI_LINKLIB)
tset/tset: $(TS_OBJS)
$(CC) -o $@ $^ -L./libterminfo -lterminfo $(LDFLAGS)
$(CC) -o $@ $^ $(LDFLAGS)

tput/tput: $(TI_LINKLIB)
tput/tput: $(TP_OBJS)
$(CC) -o $@ $^ -L./libterminfo -lterminfo $(LDFLAGS)
$(CC) -o $@ $^ $(LDFLAGS)

tset/%.o: tset/%.c
$(CC) $(CPPFLAGS) -I./tset -I. -I./libterminfo $(CFLAGS) -c -o $@ $<
Expand Down

0 comments on commit 88ce848

Please sign in to comment.