'-std=c++0x',
'-fPIC',
'-fvisibility=hidden',
+ '-fcommon',
'-Wall',
],
'libraries' : [
],
'cflags': [
'-fvisibility=default',
+ '-fcommon',
],
'variables': {
'packages': [
],
'cflags': [
'-fvisibility=default',
+ '-fcommon',
],
'variables': {
'packages': [
cp %{SOURCE1001} .
%build
+export CFLAGS+=" -fcommon "
+export CXXLAGS+=" -fcommon "
+export LDFLAGS+=" -fcommon -Wl,--allow-shlib-undefined "
export GYP_GENERATORS='ninja'
GYP_OPTIONS="--depth=.
-Dprofile=%{profile}"
# Build
./tools/gyp/gyp $GYP_OPTIONS xwalk_tizen.gyp
-ninja -C out/Default %{?_smp_mflags}
+ldflags=-Wl,--allow-shlib-undefined ninja -C out/Default %{?_smp_mflags} -v
%install
],
'cflags': [
'-fvisibility=default',
+ '-fcommon',
],
'variables': {
'packages': [
# We want to get the literal string "$ORIGIN" into the link command,
# so we need lots of escaping.
ldflags.append(r'-Wl,-rpath=\$$ORIGIN/lib.%s/' % self.toolset)
+ ldflags.append(r'-Wl,--allow-shlib-undefined.%s/' % self.toolset)
ldflags.append(r'-Wl,-rpath-link=\$(builddir)/lib.%s/' %
self.toolset)
self.WriteList(ldflags, 'LDFLAGS_%s' % configname)
rpath += self.toolset
ldflags.append('-Wl,-rpath=\$$ORIGIN/%s' % rpath)
ldflags.append('-Wl,-rpath-link=%s' % rpath)
+ ldflags.append('-Wl,--allow-shlib-undefined')
self.WriteVariableList('ldflags',
gyp.common.uniquer(map(self.ExpandSpecial,
ldflags)))