diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-11-03 22:32:24 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-11-03 22:32:24 +0100 |
commit | 22e193ddd551cf67635e73231c259415bd70c135 (patch) | |
tree | 25ff2571555022cd358b128f614d75e72c934843 /src/Makefile | |
parent | 2d0860d06c29f73ef42c01e2f4284e471d8023b4 (diff) | |
download | vim-git-22e193ddd551cf67635e73231c259415bd70c135.tar.gz |
updated for version 7.3.050v7.3.050
Problem: The link script is clumsy.
Solution: Use the --as-needed linker option if available. (Kirill A.
Shutemov)
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index ad9b113d4..8f47f45d6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1700,7 +1700,8 @@ $(VIMTARGET): auto/config.mk objects $(OBJ) version.c version.h $(CCC) version.c -o objects/version.o @LINK="$(PURIFY) $(SHRPENV) $(CClink) $(ALL_LIB_DIRS) $(LDFLAGS) \ -o $(VIMTARGET) $(OBJ) objects/version.o $(ALL_LIBS)" \ - MAKE="$(MAKE)" sh $(srcdir)/link.sh + MAKE="$(MAKE)" LINK_AS_NEEDED=$(LINK_AS_NEEDED) \ + sh $(srcdir)/link.sh xxd/xxd$(EXEEXT): xxd/xxd.c cd xxd; CC="$(CC)" CFLAGS="$(CPPFLAGS) $(CFLAGS)" \ |