0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
termux-packages/packages/serf/sconstruct.patch
Tee KOBAYASHI b634979033 serf: Bump to 1.3.10
Also refactor build.sh:

* Remove indirect dependencies from TERMUX_PKG_DEPENDS

* Move CFLAGS fix to SConstruct patch

* Remove `-lcrypt` hack in pc file which is not very meaningful now that
  serf indirectly (build-)depends on libcrypt (through apr or apr-util)
2023-06-16 08:49:12 +09:00

37 lines
1.2 KiB
Diff

--- src/SConstruct 2021-05-17 10:52:36.910193982 +0000
+++ src/SConstruct 2021-05-17 10:53:54.856878859 +0000
@@ -155,6 +155,7 @@
env = Environment(variables=opts,
tools=('default', 'textfile',),
CPPPATH=['.', ],
+ PLATFORM='posix'
)
env.Append(BUILDERS = {
@@ -216,7 +217,8 @@
# from current_version, so don't use the PATCH level to avoid that build and
# runtime patch levels have to be identical.
if sys.platform != 'sunos5':
- env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
+ #env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
+ env['SHLIBSUFFIX'] = '.so'
LIBNAME = 'libserf-%d' % (MAJOR,)
if sys.platform != 'win32':
@@ -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