0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-10-18 09:58:43 +00:00

Revert "Linking: move LDFLAGS at the end of commands"

This reverts commit 9334886d1a.

Thanks to Ondrej Zajicek.
This commit is contained in:
Pavel Tvrdík 2015-08-04 10:01:10 +02:00
parent 182f73dfba
commit 2d9b796bc5
2 changed files with 5 additions and 5 deletions

View File

@ -47,13 +47,13 @@ subdir: sysdep/paths.h .dir-stamp .dep-stamp
set -e ; for a in $(static-dirs) $(client-dirs) ; do $(MAKE) -C $$a -f $(srcdir_abs)/$$a/Makefile $@ ; done
$(exedir)/bird: $(bird-dep)
$(CC) -o $@ $^ $(LIBS) $(LDFLAGS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
$(exedir)/birdc: $(birdc-dep)
$(CC) -o $@ $^ $(LIBS) $(CLIENT_LIBS) $(LDFLAGS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS) $(CLIENT_LIBS)
$(exedir)/birdcl: $(birdcl-dep)
$(CC) -o $@ $^ $(LIBS) $(LDFLAGS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
.dir-stamp: sysdep/paths.h
mkdir -p $(static-dirs) $(client-dirs) $(doc-dirs)

View File

@ -48,10 +48,10 @@ tests_executables := $(notdir $(basename $(tests_sources)))
tests: $(tests_executables)
%_test.o: $(srcdir)/$(dir-name)/%_test.c
$(CC) $(CFLAGS) $^ -c -o $@ $(LDFLAGS)
$(CC) $(CFLAGS) -c $< -o $@
%_test: $(srcdir)/$(dir-name)/%_test.o $(root-rel)test/birdtest.o
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
$(CC) $(LDFLAGS) $^ $(LIBS) -o $@
ifdef source