Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3
gyp
gyp-rpmoptflags.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gyp-rpmoptflags.patch of Package gyp
Index: pylib/gyp/generator/make.py =================================================================== --- pylib/gyp/generator/make.py.orig +++ pylib/gyp/generator/make.py @@ -1183,6 +1183,7 @@ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj) # Write configuration-specific variables for CFLAGS, etc. for configname in sorted(configs.keys()): config = configs[configname] + rpmoptflags = ['$(RPM_OPT_FLAGS)'] self.WriteList(config.get('defines'), 'DEFS_%s' % configname, prefix='-D', quoter=EscapeCppDefine) @@ -1194,8 +1195,20 @@ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj) cflags_objcc = self.xcode_settings.GetCflagsObjCC(configname) else: cflags = config.get('cflags') + if cflags: + cflags += rpmoptflags + else: + cflags = rpmoptflags cflags_c = config.get('cflags_c') + if cflags_c: + cflags_c += rpmoptflags + else: + cflags_c = rpmoptflags cflags_cc = config.get('cflags_cc') + if cflags_cc: + cflags_cc += rpmoptflags + else: + cflags_cc = rpmoptflags self.WriteLn("# Flags passed to all source files."); self.WriteList(cflags, 'CFLAGS_%s' % configname)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor