leezu commented on a change in pull request #19751:
URL: https://github.com/apache/incubator-mxnet/pull/19751#discussion_r556906700



##########
File path: make/staticbuild/linux_cpu.mk
##########
@@ -37,7 +37,7 @@ DEBUG = 0
 USE_SIGNAL_HANDLER = 1
 
 # the additional link flags you want to add
-ADD_LDFLAGS += -L$(DEPS_PATH)/lib -lpng -ltiff -ljpeg -lz -lgfortran -ldl  
-Wl,--version-script=$(CURDIR)/make/config/libmxnet.ver,-rpath,'$${ORIGIN}',--gc-sections

Review comment:
       My point is that if `libmxnet.ver` were applied correctly, mismatch on 
ssl versions should be impossible as the symbols will be statically bound 
during linking. Are you sure that your current `libmxnet.so` used the 
`-Wl,--version-script=$(CURDIR)/make/config/libmxnet.ver`? If so, I'm not sure 
if this PR will resolve the problem. The `-Wl,--exclude-libs,ALL` is more 
robust than the version script, but in the end they serve the same purpose.
   
   But it may just be that we are missing some option to force the static 
resolution of the symbols. A good reference is 
https://akkadia.org/drepper/dsohowto.pdf




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to