mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
rules.mk: Use $(CXX) instead of $(LD) for linking
CXX is used for linking instead of LD now, since LD might point to the real linker, which doesn't understand -Wl,--blah options, of course. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
d173f91eda
commit
b1187d9d8a
1 changed files with 2 additions and 2 deletions
|
|
@ -287,7 +287,7 @@ $(VERSION_SCRIPT):
|
||||||
|
|
||||||
ifneq ($(TARGET),mingw)
|
ifneq ($(TARGET),mingw)
|
||||||
$(LIB_SO): $(VERSION_SCRIPT) $(LIB_A) $(TOPDIR)/dir_build_LIB.done
|
$(LIB_SO): $(VERSION_SCRIPT) $(LIB_A) $(TOPDIR)/dir_build_LIB.done
|
||||||
$(LD) -shared -Wl,--whole-archive,-soname=$(notdir $@) $(VERSION_SCRIPT) $(LIB_A) -Wl,--no-whole-archive \
|
$(CXX) -shared -Wl,--whole-archive,-soname=$(notdir $@) $(VERSION_SCRIPT) $(LIB_A) -Wl,--no-whole-archive \
|
||||||
$(filter-out -l$(LIBNAME),$(REAL_LDFLAGS)) -o $@
|
$(filter-out -l$(LIBNAME),$(REAL_LDFLAGS)) -o $@
|
||||||
else
|
else
|
||||||
$(WINRES_RC): $(WINRES_RC_TMPL)
|
$(WINRES_RC): $(WINRES_RC_TMPL)
|
||||||
|
|
@ -303,7 +303,7 @@ $(WINRES_O): $(WINRES_RC)
|
||||||
$(WINDRES) $^ -o $@
|
$(WINDRES) $^ -o $@
|
||||||
|
|
||||||
$(LIB_SO): $(VERSION_SCRIPT) $(WINRES_O) $(LIB_A) $(TOPDIR)/dir_build_LIB.done
|
$(LIB_SO): $(VERSION_SCRIPT) $(WINRES_O) $(LIB_A) $(TOPDIR)/dir_build_LIB.done
|
||||||
$(LD) -shared -Wl,--whole-archive,--out-implib,$(shell echo $(LIB_A) | \
|
$(CXX) -shared -Wl,--whole-archive,--out-implib,$(shell echo $(LIB_A) | \
|
||||||
$(SED) 's/-static//'),--output-def,$(LIB_DEF) $(VERSION_SCRIPT) $(LIB_A) $(WINRES_O) \
|
$(SED) 's/-static//'),--output-def,$(LIB_DEF) $(VERSION_SCRIPT) $(LIB_A) $(WINRES_O) \
|
||||||
-Wl,--no-whole-archive $(filter-out -l$(LIBNAME),$(REAL_LDFLAGS)) -o $@
|
-Wl,--no-whole-archive $(filter-out -l$(LIBNAME),$(REAL_LDFLAGS)) -o $@
|
||||||
$(MSVCPP_IMPLIB): $(LIB_SO)
|
$(MSVCPP_IMPLIB): $(LIB_SO)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue