mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
avoid naming conflicts in OpenJDK build of libavian.a
OpenJDK's compile.c and Avian's compile.cpp were both being compiled to compile.o, which led to a conflict when building libavian.a. We now append "-openjdk" to the object file name for OpenJDK code to avoid such conflicts.
This commit is contained in:
parent
cada2c6acc
commit
a17045b02f
4
makefile
4
makefile
@ -898,7 +898,7 @@ $(generator): $(generator-objects)
|
|||||||
@echo "linking $(@)"
|
@echo "linking $(@)"
|
||||||
$(build-ld) $(^) $(build-lflags) -o $(@)
|
$(build-ld) $(^) $(build-lflags) -o $(@)
|
||||||
|
|
||||||
$(openjdk-objects): $(build)/openjdk/%.o: $(openjdk-src)/%.c \
|
$(openjdk-objects): $(build)/openjdk/%-openjdk.o: $(openjdk-src)/%.c \
|
||||||
$(openjdk-headers-dep)
|
$(openjdk-headers-dep)
|
||||||
@echo "compiling $(@)"
|
@echo "compiling $(@)"
|
||||||
@mkdir -p $(dir $(@))
|
@mkdir -p $(dir $(@))
|
||||||
@ -907,7 +907,7 @@ $(openjdk-objects): $(build)/openjdk/%.o: $(openjdk-src)/%.c \
|
|||||||
$(optimization-cflags) -w -c $(build)/openjdk/$(notdir $(<)) \
|
$(optimization-cflags) -w -c $(build)/openjdk/$(notdir $(<)) \
|
||||||
$(call output,$(@))
|
$(call output,$(@))
|
||||||
|
|
||||||
$(openjdk-local-objects): $(build)/openjdk/%.o: $(src)/openjdk/%.c \
|
$(openjdk-local-objects): $(build)/openjdk/%-openjdk.o: $(src)/openjdk/%.c \
|
||||||
$(openjdk-headers-dep)
|
$(openjdk-headers-dep)
|
||||||
@echo "compiling $(@)"
|
@echo "compiling $(@)"
|
||||||
@mkdir -p $(dir $(@))
|
@mkdir -p $(dir $(@))
|
||||||
|
@ -298,7 +298,7 @@ endif
|
|||||||
openjdk-local-sources = \
|
openjdk-local-sources = \
|
||||||
$(src)/openjdk/my_net_util.c
|
$(src)/openjdk/my_net_util.c
|
||||||
|
|
||||||
c-objects = $(foreach x,$(1),$(patsubst $(2)/%.c,$(3)/%.o,$(x)))
|
c-objects = $(foreach x,$(1),$(patsubst $(2)/%.c,$(3)/%-openjdk.o,$(x)))
|
||||||
|
|
||||||
openjdk-objects = \
|
openjdk-objects = \
|
||||||
$(call c-objects,$(openjdk-sources),$(openjdk-src),$(build)/openjdk)
|
$(call c-objects,$(openjdk-sources),$(openjdk-src),$(build)/openjdk)
|
||||||
|
Loading…
Reference in New Issue
Block a user