Commit 12ff04c4 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner

Fix linking (hopefully)

parent e14d4c70
......@@ -157,7 +157,7 @@ $(O)/.objs/%.o: $(S)/%.c
$(O)/bin/%:
$(M) LD $@
$(Q)mkdir -p $(dir $@)
$(Q)$(CC) $(LDFLAGS_ALL) $(LINK_LIBRARIES) $(filter %.o,$^) -o $@
$(Q)$(CC) $(filter %.o,$^) -o $@ $(LDFLAGS_ALL) $(LINK_LIBRARIES)
$(O)/lib/%.a:
$(M) AR $@
......@@ -168,7 +168,7 @@ $(O)/lib/%.so: CFLAGS_ALL += -fPIC
$(O)/lib/%.so:
$(M) LD $@
$(Q)mkdir -p $(dir $@)
$(Q)$(CC) $(LDFLAGS_ALL) $(LINK_SO_LIBRARIES) -shared -o $@ $(filter %.o,$^)
$(Q)$(CC) -o $@ $(filter %.o,$^) $(LDFLAGS_ALL) $(LINK_SO_LIBRARIES) -shared
$(O)/docs/%:
$(M) DOC-HTML $@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment