jsoncpp/jsoncpp-0.6.0_rc2-buildfix-fPIC.patch
Silvan Calarco 9ca4f035ea provide pkg-config file
move headers to %{_includedir}/jsoncpp [release 0.6.0_rc2-2mamba;Wed Sep 17 2014]
2024-01-06 00:21:22 +01:00

12 lines
505 B
Diff

--- jsoncpp-src-0.6.0-rc2/SConstruct.orig 2014-09-17 14:13:14.742927982 +0200
+++ jsoncpp-src-0.6.0-rc2/SConstruct 2014-09-17 14:11:04.782932297 +0200
@@ -119,7 +119,7 @@
env.Append( CPPDEFINES=[ "WIN32", "NDEBUG", "_MT" ] )
elif platform.startswith('linux-gcc'):
env.Tool( 'default' )
- env.Append( LIBS = ['pthread'], CCFLAGS = "-Wall" )
+ env.Append( LIBS = ['pthread'], CCFLAGS = "-Wall -fPIC" )
env['SHARED_LIB_ENABLED'] = True
else:
print "UNSUPPORTED PLATFORM."