jsoncpp/jsoncpp-0.5.0-soname.patch

25 lines
1.1 KiB
Diff
Raw Permalink Normal View History

diff -Nru jsoncpp-src-0.5.0.orig/SConstruct jsoncpp-src-0.5.0/SConstruct
--- jsoncpp-src-0.5.0.orig/SConstruct 2010-03-12 08:31:04.000000000 +0100
+++ jsoncpp-src-0.5.0/SConstruct 2014-06-20 12:45:42.510887023 +0200
@@ -179,8 +179,10 @@
global lib_dir
env.Install( lib_dir, static_lib )
if env['SHARED_LIB_ENABLED']:
+ shlink_flags = '-shared -Wl,-soname -Wl,lib' + target_name + 'cpp.so.0'
shared_lib = env.SharedLibrary( target=target_name + '_${LIB_NAME_SUFFIX}',
- source=target_sources )
+ source=target_sources,
+ SHLINKFLAGS=shlink_flags )
env.Install( lib_dir, shared_lib )
env['SRCDIST_ADD']( source=[target_sources] )
@@ -190,7 +192,7 @@
global build_dir
target_build_dir = os.path.join( build_dir, target_directory )
target = os.path.join( target_directory, 'sconscript' )
- SConscript( target, build_dir=target_build_dir, duplicate=0 )
+ SConscript( target, variant_dir=target_build_dir, duplicate=0 )
env['SRCDIST_ADD']( source=[target] )