mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
3f5315156c
- Respect CFLAGS - Remove Author tag from pkg-descr PR: ports/175223 [1] Submitted by: Vitaly Magerya <vmagerya@gmail.com> [1] Approved by: maintainer timeout Feature safe: yes
25 lines
1.0 KiB
Plaintext
25 lines
1.0 KiB
Plaintext
--- SConstruct.orig 2012-12-31 19:03:38.000000000 +0200
|
|
+++ SConstruct 2013-01-11 20:45:33.000000000 +0200
|
|
@@ -39,7 +39,7 @@
|
|
|
|
tools = ['default', 'textfile']
|
|
|
|
-env = Environment(ENV=os.environ, options=opts, tools=tools)
|
|
+env = Environment(ENV=os.environ, options=opts, tools=tools, **dict((k, v.split()) for k, v in ARGUMENTS.iteritems()))
|
|
print('building for %r (use scons python_binary=xxx to change)' % env['python_binary'])
|
|
print('using %r (use scons python_config=xxx to change)' % env['python_config'])
|
|
if sys.platform == "win32":
|
|
@@ -47,9 +47,9 @@
|
|
env = Environment(tools=tools + ['mingw'], ENV=os.environ, options=opts)
|
|
opts.Update(env)
|
|
|
|
-env.Append(CXXFLAGS=' -Wall -Wno-sign-compare -Wno-write-strings')
|
|
-env.Append(CCFLAGS='-Wall')
|
|
-env.Append(CFLAGS='-std=c99')
|
|
+env.Append(CXXFLAGS=['-Wall', '-Wno-sign-compare', '-Wno-write-strings'])
|
|
+env.Append(CCFLAGS=['-Wall'])
|
|
+env.Append(CFLAGS=['-std=c99'])
|
|
|
|
# Define strdup() in string.h under glibc >= 2.10 (POSIX.1-2008)
|
|
env.Append(CFLAGS='-D_POSIX_C_SOURCE=200809L')
|