summarylogtreecommitdiffstats
path: root/no-whole-archive.patch
diff options
context:
space:
mode:
authorpat-s2019-07-01 07:38:30 +0200
committerpat-s2019-07-01 07:38:30 +0200
commitec58921e79c054037b688b658b13c3a851a9b596 (patch)
tree6dc74093ff10516c955d2a44569d45ac0286424d /no-whole-archive.patch
downloadaur-ec58921e79c054037b688b658b13c3a851a9b596.tar.gz
v3.1.11
Diffstat (limited to 'no-whole-archive.patch')
-rw-r--r--no-whole-archive.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/no-whole-archive.patch b/no-whole-archive.patch
new file mode 100644
index 000000000000..3c7a63be740e
--- /dev/null
+++ b/no-whole-archive.patch
@@ -0,0 +1,22 @@
+--- a/brightray/brightray.gyp
++++ b/brightray/brightray.gyp
+@@ -55,14 +55,13 @@
+ 'conditions': [
+ # Link with libraries of libchromiumcontent.
+ ['OS=="linux" and libchromiumcontent_component==0', {
+- # On Linux we have to use "--whole-archive" to force executable
+- # to include all symbols, otherwise we will have plenty of
++ # On Linux we have to use "--start-group" or we will have plenty of
+ # unresolved symbols errors.
+- 'direct_dependent_settings': {
+- 'ldflags': [
+- '-Wl,--whole-archive',
++ 'link_settings': {
++ 'libraries': [
++ '-Wl,--start-group',
+ '<@(libchromiumcontent_libraries)',
+- '-Wl,--no-whole-archive',
++ '-Wl,--end-group'
+ ],
+ }
+ }, { # (Release build on Linux)