mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 05:40:30 -04:00
Changelog at <https://github.com/CauldronDevelopmentLLC/CAMotics/blob/master/CHANGELOG.md#v130>
36 lines
1.6 KiB
Text
36 lines
1.6 KiB
Text
--- SConstruct.orig 2023-03-09 16:07:30 UTC
|
|
+++ SConstruct
|
|
@@ -15,12 +15,15 @@ env.CBLoadTools(
|
|
env.Tool('config', toolpath = [cbang])
|
|
env.CBLoadTools(
|
|
'compiler cbang dist opengl dxflib python build_info packager resources')
|
|
+# See https://github.com/CauldronDevelopmentLLC/CAMotics/issues/389 for wrap_glibc
|
|
env.CBAddVariables(
|
|
('install_prefix', 'Installation directory prefix', '/usr/local/'),
|
|
BoolVariable('qt_deps', 'Enable Qt package dependencies', True),
|
|
('python_version', 'Set python version', '3'),
|
|
BoolVariable('with_tpl', 'Enable TPL', True),
|
|
BoolVariable('with_gui', 'Enable graphical user interface', True),
|
|
+ BoolVariable('wrap_glibc', 'Enable GlibC function wrapping',
|
|
+ env['PLATFORM'] == 'posix'),
|
|
)
|
|
conf = env.CBConfigure()
|
|
|
|
@@ -111,7 +114,7 @@ if not env.GetOption('clean'):
|
|
if env.get('static') or env.get('mostly_static'):
|
|
conf.CBCheckLib('selinux')
|
|
|
|
- if env['PLATFORM'] == 'posix':
|
|
+ if env['wrap_glibc']:
|
|
funcs = 'log logf exp expf pow powf memcpy'.split()
|
|
flags = list(map(lambda n: '-Wl,--wrap=' + n, funcs))
|
|
env.AppendUnique(LINKFLAGS = flags)
|
|
@@ -154,7 +157,7 @@ if env['with_tpl']: src += Glob('src/tplang/*.cpp')
|
|
subdirs = ['', 'sim', 'probe', 'opt', 'project', 'contour', 'render']
|
|
for subdir in subdirs: src += Glob('src/camotics/%s/*.cpp' % subdir)
|
|
if env['with_tpl']: src += Glob('src/tplang/*.cpp')
|
|
-src += ['src/glibc.c']
|
|
+if env['wrap_glibc']: src += ['src/glibc.c']
|
|
|
|
src = list(map(lambda path: re.sub(r'^src/', 'build/', str(path)), src))
|
|
|