Provide linker script for c++ library aswell
Currently only hides the C symbols (cherry picked from commit 4c118dfeb6f7b384477c0d98806654eec42e1bc7)
This commit is contained in:
Родитель
11ae61b93c
Коммит
98224a24df
|
@ -10,7 +10,7 @@ rdkafka.pc
|
|||
*.so.?
|
||||
*.a
|
||||
*.d
|
||||
librdkafka.lds
|
||||
librdkafka*.lds
|
||||
core
|
||||
*dSYM/
|
||||
*.offset
|
||||
|
|
|
@ -27,8 +27,13 @@ install: lib-install
|
|||
|
||||
clean: lib-clean
|
||||
|
||||
ifeq ($(WITH_LDS),y)
|
||||
# Enable linker script if supported by platform
|
||||
LIB_LDFLAGS+= -Wl,--version-script=$(LIBNAME).lds
|
||||
endif
|
||||
|
||||
$(LIBNAME).lds: $(HDRS)
|
||||
@(echo "$(MKL_YELLOW)Generating linker script $@ from $(HDRS)$(MKL_CLR_RESET)" ; \
|
||||
cat $(HDRS) | ../lds-gen.pl > $@)
|
||||
cat ../src/rdkafka.h | ../lds-gen.pl > $@)
|
||||
|
||||
-include $(DEPS)
|
||||
|
|
Загрузка…
Ссылка в новой задаче