2021-05-29 18:41:04 +07:00
|
|
|
--- src/SConstruct 2021-05-17 10:52:36.910193982 +0000
|
|
|
|
|
+++ src/SConstruct 2021-05-17 10:53:54.856878859 +0000
|
2016-09-26 10:48:48 -04:00
|
|
|
@@ -155,6 +155,7 @@
|
2015-06-13 01:03:31 +02:00
|
|
|
env = Environment(variables=opts,
|
|
|
|
|
tools=('default', 'textfile',),
|
|
|
|
|
CPPPATH=['.', ],
|
2021-05-29 18:41:04 +07:00
|
|
|
+ PLATFORM='posix'
|
2015-06-13 01:03:31 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
env.Append(BUILDERS = {
|
2021-05-29 18:41:04 +07:00
|
|
|
@@ -216,7 +217,8 @@
|
2015-06-13 01:03:31 +02:00
|
|
|
# from current_version, so don't use the PATCH level to avoid that build and
|
|
|
|
|
# runtime patch levels have to be identical.
|
2016-09-26 10:48:48 -04:00
|
|
|
if sys.platform != 'sunos5':
|
|
|
|
|
- env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
|
2021-05-29 18:41:04 +07:00
|
|
|
+ #env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
|
2016-09-26 10:48:48 -04:00
|
|
|
+ env['SHLIBSUFFIX'] = '.so'
|
2015-06-13 01:03:31 +02:00
|
|
|
|
|
|
|
|
LIBNAME = 'libserf-%d' % (MAJOR,)
|
|
|
|
|
if sys.platform != 'win32':
|
2023-06-16 04:04:24 +09:00
|
|
|
@@ -257,7 +259,6 @@
|
|
|
|
|
env = conf.Finish()
|
|
|
|
|
|
|
|
|
|
if have_gcc:
|
|
|
|
|
- env.Append(CFLAGS=['-std=c89'])
|
|
|
|
|
env.Append(CCFLAGS=['-Wdeclaration-after-statement',
|
|
|
|
|
'-Wmissing-prototypes',
|
|
|
|
|
'-Wall'])
|
|
|
|
|
@@ -266,7 +267,6 @@
|
|
|
|
|
env.Append(CCFLAGS=['-g'])
|
|
|
|
|
env.Append(CPPDEFINES=['DEBUG', '_DEBUG'])
|
|
|
|
|
else:
|
|
|
|
|
- env.Append(CCFLAGS=['-O2'])
|
|
|
|
|
env.Append(CPPDEFINES=['NDEBUG'])
|
|
|
|
|
|
|
|
|
|
### works for Mac OS. probably needs to change
|