diff --git a/makefile b/makefile index 367311518f..7356792831 100644 --- a/makefile +++ b/makefile @@ -898,7 +898,7 @@ $(generator): $(generator-objects) @echo "linking $(@)" $(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) @echo "compiling $(@)" @mkdir -p $(dir $(@)) @@ -907,7 +907,7 @@ $(openjdk-objects): $(build)/openjdk/%.o: $(openjdk-src)/%.c \ $(optimization-cflags) -w -c $(build)/openjdk/$(notdir $(<)) \ $(call output,$(@)) -$(openjdk-local-objects): $(build)/openjdk/%.o: $(src)/openjdk/%.c \ +$(openjdk-local-objects): $(build)/openjdk/%-openjdk.o: $(src)/openjdk/%.c \ $(openjdk-headers-dep) @echo "compiling $(@)" @mkdir -p $(dir $(@)) diff --git a/openjdk-src.mk b/openjdk-src.mk index 190c8622e9..b050f75c94 100644 --- a/openjdk-src.mk +++ b/openjdk-src.mk @@ -298,7 +298,7 @@ endif openjdk-local-sources = \ $(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 = \ $(call c-objects,$(openjdk-sources),$(openjdk-src),$(build)/openjdk)