components/serf/patches/build-solaris.patch
changeset 5243 cb29cf94919d
equal deleted inserted replaced
5242:d5e2c756f63c 5243:cb29cf94919d
       
     1 Changes needed to get serf to build on Solaris. Taken from:
       
     2 http://mail-archives.apache.org/mod_mbox/subversion-dev/201411.mbox/<[email protected]>
       
     3 
       
     4 These changes are already known upstream.
       
     5 
       
     6 --- serf-1.3.8/SConstruct.orig	2015-03-25 06:42:50.687989565 -0700
       
     7 +++ serf-1.3.8/SConstruct	2015-03-25 06:44:01.084907971 -0700
       
     8 @@ -210,7 +210,7 @@
       
     9  # Unfortunately we can't set the .dylib compatibility_version option separately
       
    10  # from current_version, so don't use the PATCH level to avoid that build and
       
    11  # runtime patch levels have to be identical.
       
    12 -env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
       
    13 +#env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
       
    14  
       
    15  LIBNAME = 'libserf-%d' % (MAJOR,)
       
    16  if sys.platform != 'win32':
       
    17 @@ -248,6 +248,7 @@
       
    18  
       
    19    if sys.platform == 'sunos5':
       
    20      env.Append(LIBS='m')
       
    21 +    env['PLATFORM'] = 'posix'
       
    22  else:
       
    23    # Warning level 4, no unused argument warnings
       
    24    env.Append(CCFLAGS=['/W4', '/wd4100'])