logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

serf-1.3.8-openssl.patch (960B)


  1. the build doesn't actually use the openssl var for anything useful.
  2. it blindly adds it to the -I/-L paths which causes problems when you
  3. cross-compile and when you link (it also adds it to -rpath). punt
  4. the setting and forget about it.
  5. --- a/SConstruct
  6. +++ b/SConstruct
  7. @@ -354,8 +354,6 @@ else:
  8. apr_libs = ''
  9. apu_libs = ''
  10. - env.Append(CPPPATH=['$OPENSSL/include'])
  11. - env.Append(LIBPATH=['$OPENSSL/lib'])
  12. # If build with gssapi, get its information and define SERF_HAVE_GSSAPI
  13. @@ -369,8 +369,9 @@ if sys.platform == 'win32':
  14. # On some systems, the -R values that APR describes never make it into actual
  15. # RPATH flags. We'll manually map all directories in LIBPATH into new
  16. # flags to set RPATH values.
  17. -for d in env['LIBPATH']:
  18. - env.Append(RPATH=':'+d)
  19. +if env.get('LIBPATH', None):
  20. + for d in env['LIBPATH']:
  21. + env.Append(RPATH=':'+d)
  22. # Set up the construction of serf-*.pc
  23. pkgconfig = env.Textfile('serf-%d.pc' % (MAJOR,),