mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
defs.mk, rules.mk: Use version script to tag all symbols
This commit is contained in:
parent
e14ada2bd6
commit
a4fc4aed0f
2 changed files with 7 additions and 2 deletions
|
|
@ -40,8 +40,12 @@ lib%.so: %.o
|
|||
endif
|
||||
$(CC) $< $(LDFLAGS) -o $@
|
||||
|
||||
$(LIB_SO): $(LIB_A)
|
||||
$(CC) -shared -Wl,--whole-archive,-soname=$(notdir $@) $< -Wl,--no-whole-archive \
|
||||
version.ldscript:
|
||||
$(MOD_SCRIPT_DIR)/make_version_script.sh $(BINARY_VERSION) > $@
|
||||
|
||||
$(LIB_SO): version.ldscript $(LIB_A)
|
||||
$(CC) -shared -Wl,--whole-archive,-soname=$(notdir $@) $(filter-out version.ldscript, $<) \
|
||||
-Wl,--no-whole-archive -Wl,--version-script=version.ldscript \
|
||||
$(filter-out -l$(LIBNAME),$(LDFLAGS)) -o $@
|
||||
|
||||
$(TOPDIR)/include:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue