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
b1187d9d8a
commit
cbd944d254
1 changed files with 2 additions and 2 deletions
|
|
@ -275,10 +275,10 @@ strip.done: $(EXE_ALL)
|
|||
|
||||
ifeq ($(LIBTYPE),shared)
|
||||
$(SO_PREFIX)%.so: %.o
|
||||
$(LD) -shared $(REAL_LDFLAGS) $(FLAVOUR_PREFIX)$^ -o $@
|
||||
$(CXX) -shared $(REAL_LDFLAGS) $(FLAVOUR_PREFIX)$^ -o $@
|
||||
else
|
||||
$(SO_PREFIX)%.so: %.o
|
||||
$(LD) $(REAL_LDFLAGS) $(FLAVOUR_PREFIX)$^ -o $@
|
||||
$(CXX) $(REAL_LDFLAGS) $(FLAVOUR_PREFIX)$^ -o $@
|
||||
endif
|
||||
|
||||
$(VERSION_SCRIPT):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue