diff options
Diffstat (limited to 'cgit.mk')
| -rw-r--r-- | cgit.mk | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -61,6 +61,8 @@ $(CGIT_VERSION_OBJS): $(CGIT_PREFIX)VERSION | |||
| 61 | $(CGIT_VERSION_OBJS): EXTRA_CPPFLAGS = \ | 61 | $(CGIT_VERSION_OBJS): EXTRA_CPPFLAGS = \ |
| 62 | -DCGIT_VERSION='"$(CGIT_VERSION)"' | 62 | -DCGIT_VERSION='"$(CGIT_VERSION)"' |
| 63 | 63 | ||
| 64 | CGIT_LIBS += -ldl | ||
| 65 | |||
| 64 | 66 | ||
| 65 | # Git handles dependencies using ":=" so dependencies in CGIT_OBJ are not | 67 | # Git handles dependencies using ":=" so dependencies in CGIT_OBJ are not |
| 66 | # handled by that and we must handle them ourselves. | 68 | # handled by that and we must handle them ourselves. |
| @@ -88,4 +90,4 @@ $(CGIT_OBJS): %.o: %.c GIT-CFLAGS $(CGIT_PREFIX)CGIT-CFLAGS $(missing_dep_dirs) | |||
| 88 | $(QUIET_CC)$(CC) -o $*.o -c $(dep_args) $(ALL_CFLAGS) $(EXTRA_CPPFLAGS) $(CGIT_CFLAGS) $< | 90 | $(QUIET_CC)$(CC) -o $*.o -c $(dep_args) $(ALL_CFLAGS) $(EXTRA_CPPFLAGS) $(CGIT_CFLAGS) $< |
| 89 | 91 | ||
| 90 | $(CGIT_PREFIX)cgit: $(CGIT_OBJS) GIT-LDFLAGS $(GITLIBS) | 92 | $(CGIT_PREFIX)cgit: $(CGIT_OBJS) GIT-LDFLAGS $(GITLIBS) |
| 91 | $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) | 93 | $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) $(CGIT_LIBS) |
