Fix a build issue with RocksJava on ppc64le that was introduced in https://github.com/facebook/rocksdb/pull/6660
This was fixed in https://github.com/facebook/rocksdb/pull/7359 and this commit is just a partial back-port of the necessary parts of that PR.
This commit is contained in:
parent
7885d8f9bd
commit
bfdb0a7651
11
Makefile
11
Makefile
@ -2091,13 +2091,6 @@ rocksdbjavastaticpublishcentral:
|
|||||||
jl/%.o: %.cc
|
jl/%.o: %.cc
|
||||||
$(AM_V_CC)mkdir -p $(@D) && $(CXX) $(CXXFLAGS) -fPIC -c $< -o $@ $(COVERAGEFLAGS)
|
$(AM_V_CC)mkdir -p $(@D) && $(CXX) $(CXXFLAGS) -fPIC -c $< -o $@ $(COVERAGEFLAGS)
|
||||||
|
|
||||||
jl/crc32c_ppc.o: util/crc32c_ppc.c
|
|
||||||
$(AM_V_CC)$(CC) $(CFLAGS) -c $< -o $@
|
|
||||||
|
|
||||||
jl/crc32c_ppc_asm.o: util/crc32c_ppc_asm.S
|
|
||||||
$(AM_V_CC)$(CC) $(CFLAGS) -c $< -o $@
|
|
||||||
|
|
||||||
|
|
||||||
rocksdbjava: $(LIB_OBJECTS)
|
rocksdbjava: $(LIB_OBJECTS)
|
||||||
$(AM_V_GEN)cd java;$(MAKE) javalib;
|
$(AM_V_GEN)cd java;$(MAKE) javalib;
|
||||||
$(AM_V_at)rm -f ./java/target/$(ROCKSDBJNILIB)
|
$(AM_V_at)rm -f ./java/target/$(ROCKSDBJNILIB)
|
||||||
@ -2159,7 +2152,7 @@ ifeq ($(HAVE_POWER8),1)
|
|||||||
$(OBJ_DIR)/util/crc32c_ppc.o: util/crc32c_ppc.c
|
$(OBJ_DIR)/util/crc32c_ppc.o: util/crc32c_ppc.c
|
||||||
$(AM_V_CC)$(CC) $(CFLAGS) -c $< -o $@
|
$(AM_V_CC)$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
+$(OBJ_DIR)/util/crc32c_ppc_asm.o: util/crc32c_ppc_asm.S
|
$(OBJ_DIR)/util/crc32c_ppc_asm.o: util/crc32c_ppc_asm.S
|
||||||
$(AM_V_CC)$(CC) $(CFLAGS) -c $< -o $@
|
$(AM_V_CC)$(CC) $(CFLAGS) -c $< -o $@
|
||||||
endif
|
endif
|
||||||
$(OBJ_DIR)/%.o: %.cc
|
$(OBJ_DIR)/%.o: %.cc
|
||||||
@ -2205,7 +2198,7 @@ $(OBJ_DIR)/%.c.d: %.c
|
|||||||
@$(CXX) $(CXXFLAGS) $(PLATFORM_SHARED_CFLAGS) \
|
@$(CXX) $(CXXFLAGS) $(PLATFORM_SHARED_CFLAGS) \
|
||||||
-MM -MT'$@' -MT'$(<:.c=.o)' "$<" -o '$@'
|
-MM -MT'$@' -MT'$(<:.c=.o)' "$<" -o '$@'
|
||||||
|
|
||||||
+$(OBJ_DIR)/%.S.d: %.S
|
$(OBJ_DIR)/%.S.d: %.S
|
||||||
@$(CXX) $(CXXFLAGS) $(PLATFORM_SHARED_CFLAGS) \
|
@$(CXX) $(CXXFLAGS) $(PLATFORM_SHARED_CFLAGS) \
|
||||||
-MM -MT'$@' -MT'$(<:.S=.o)' "$<" -o '$@'
|
-MM -MT'$@' -MT'$(<:.S=.o)' "$<" -o '$@'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user