On 04/22/2010 03:19 PM, Philipp Thomas wrote:
From then SConstruct of libzzub:
gcc = env['CC'] == 'gcc' cl = env['CC'] == 'cl'
if gcc: #env['CXXFLAGS'] += ['--no-rtti'] if env['DEBUG'] == False: env.Append(CCFLAGS=[ '-O3', '-fomit-frame-pointer', '-funroll-loops', '-DNDEBUG', ]) else: env.Append(CCFLAGS=[ '-g', '-DDEBUG', '-D_DEBUG', ]) if env['SSE2'] == True: if not x86_64: env.Append(CCFLAGS=[ '-march=i686', ]) env.Append(CCFLAGS=[ '-mfpmath=sse', '-msse2', ]) elif env['SSE'] == True: if not x86_64: env.Append(CCFLAGS=[ '-march=i686', ]) env.Append(CCFLAGS=[ '-mfpmath=sse', '-msse', ])
How do I splice in RPM_OPT_FLAGS?
Thanks in advance Philipp
Have you tried "export CCFLAGS="RPM_OPT_FLAGS" in the spec file, it works with most scons builds but not always. Regards Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org