Fix linking by linking libi3 first and its dependencies afterwards

Interestingly, compilation was only broken on some systems apparently
This commit is contained in:
Michael Stapelberg 2012-07-23 10:56:44 +02:00
parent eb66337020
commit 0f22b105c1
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ i3-dump-log/%.o: i3-dump-log/%.c $(i3_dump_log_HEADERS)
i3-dump-log/i3-dump-log: libi3.a $(i3_dump_log_OBJECTS) i3-dump-log/i3-dump-log: libi3.a $(i3_dump_log_OBJECTS)
echo "[i3-dump-log] Link i3-dump-log" echo "[i3-dump-log] Link i3-dump-log"
$(CC) $(I3_LDFLAGS) $(LDFLAGS) -o $@ $(filter-out libi3.a,$^) $(i3_dump_log_LIBS) $(LIBS) $(CC) $(I3_LDFLAGS) $(LDFLAGS) -o $@ $(filter-out libi3.a,$^) $(LIBS) $(i3_dump_log_LIBS)
install-i3-dump-log: i3-dump-log/i3-dump-log install-i3-dump-log: i3-dump-log/i3-dump-log
echo "[i3-dump-log] Install" echo "[i3-dump-log] Install"

View File

@ -16,7 +16,7 @@ i3-msg/%.o: i3-msg/%.c $(i3_msg_HEADERS)
i3-msg/i3-msg: libi3.a $(i3_msg_OBJECTS) i3-msg/i3-msg: libi3.a $(i3_msg_OBJECTS)
echo "[i3-msg] Link i3-msg" echo "[i3-msg] Link i3-msg"
$(CC) $(I3_LDFLAGS) $(LDFLAGS) -o $@ $(filter-out libi3.a,$^) $(i3_msg_LIBS) $(LIBS) $(CC) $(I3_LDFLAGS) $(LDFLAGS) -o $@ $(filter-out libi3.a,$^) $(LIBS) $(i3_msg_LIBS)
install-i3-msg: i3-msg/i3-msg install-i3-msg: i3-msg/i3-msg
echo "[i3-msg] Install" echo "[i3-msg] Install"