Skip to content

Commit

Permalink
Makefile: fix undefined references with static builds (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
orbea committed Apr 4, 2021
1 parent 0c5fa34 commit 3822238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -74,10 +74,10 @@ uniutil.lo: uniutil.c unibilium.h
$(LIBRARY): $(OBJECTS)
$(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) -rpath '$(LIBDIR)' -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -o $@ $^

tools/%: $(LIBRARY) tools/%.lo
tools/%: $(LIBRARY) $(OBJECTS) tools/%.lo
$(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) -o $@ $^

%.t: $(LIBRARY) %.lo
%.t: $(LIBRARY) $(OBJECTS) %.lo
$(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) -o $@ $^

.PHONY: build-tools
Expand Down

0 comments on commit 3822238

Please sign in to comment.