mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
lo.mk: Link against $(TOOLS_DIR)/$(CPP_PREFIX)/$*.o
The last commit doesn\'t work with TOOLS_DIR != . Fix this by always also linking against $(TOOLS_DIR)/$(CPP_PREFIX)/$*.o. Symbols sometimes duplicates to those in the project lib in case TOOLS_DIR != ., hence not very nice. But seems to work.
This commit is contained in:
parent
04e1e8de66
commit
c73eaa3015
1 changed files with 2 additions and 2 deletions
|
|
@ -32,8 +32,8 @@ clean: clean.lo
|
|||
clean.lo: profclean
|
||||
rm -f $(filter-out $(CPP_PREFIX)%.cpp,$(wildcard *.o *.cpp *.so *.done *.dll))
|
||||
|
||||
$(SO_PREFIX)%.so $(SO_PREFIX)%.dll: %.o $(CPP_PREFIX)%.o
|
||||
$(CPP) -shared $^ $(LDFLAGS) -o $@
|
||||
$(SO_PREFIX)%.so $(SO_PREFIX)%.dll: %.o
|
||||
$(CPP) -shared $^ $(LDFLAGS) $(wildcard $(TOOLS_DIR)/$(CPP_PREFIX)$*.o) -o $@
|
||||
|
||||
%.cpp: $(TOOLS_DIR)/$(CPP_PREFIX)%.h
|
||||
echo -e "#include \"$<\"\n$(LOADABLE_OBJ_HOOK)($(CPP_PREFIX)$*);\n" > $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue