diff options
author | Daniel Carl <danielcarl@gmx.de> | 2017-04-11 09:35:18 +0200 |
---|---|---|
committer | Daniel Carl <danielcarl@gmx.de> | 2017-04-11 09:35:18 +0200 |
commit | 190480775f6cfa0de0794a4c0f6ad274aade0294 (patch) | |
tree | e6dd1428c8e88131941ad7d78472b7fc8be062a5 /src/Makefile | |
parent | 35abc0967ecd7c837a6b67639cf880bed059a7a4 (diff) |
Put objects before linker flags.
This allows to compile with -Wl,--as-needed option which affects only
those libraries written after that option on the command line.
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index a352597..9794ac0 100644 --- a/src/Makefile +++ b/src/Makefile @@ -12,7 +12,7 @@ clean: $(SUBDIRS:%=%.subdir-clean) vimb: $(OBJ) $(Q)echo "${CC} $@" - $(Q)$(CC) $(LDFLAGS) $(OBJ) -o $@ + $(Q)$(CC) $(OBJ) $(LDFLAGS) -o $@ $(OBJ): config.h $(BASEDIR)/config.mk scripts/scripts.h |