- Apply a patch to hide local ABI symbols to avoid issues with new binutils - Patch the waf script to explicitly call python2 as "env python" doesn't yield py2 anymore
21 lines
886 B
Diff
21 lines
886 B
Diff
diff -up talloc-2.1.14/buildtools/wafsamba/samba_abi.py.sym_hide talloc-2.1.14/buildtools/wafsamba/samba_abi.py
|
|
--- talloc-2.1.14/buildtools/wafsamba/samba_abi.py.sym_hide 2015-12-10 12:01:40.000000000 +0100
|
|
+++ talloc-2.1.14/buildtools/wafsamba/samba_abi.py 2018-07-12 11:46:30.024298881 +0200
|
|
@@ -192,10 +192,12 @@ def abi_write_vscript(f, libname, curren
|
|
f.write("\t\t%s;\n" % x)
|
|
else:
|
|
f.write("\t\t*;\n")
|
|
- if abi_match != ["*"]:
|
|
- f.write("\tlocal:\n")
|
|
- for x in local_abi:
|
|
- f.write("\t\t%s;\n" % x[1:])
|
|
+ # Always hide symbols that must be local if exist
|
|
+ local_abi.extend(["!_end", "!_bss_start", "!_edata"])
|
|
+ f.write("\tlocal:\n")
|
|
+ for x in local_abi:
|
|
+ f.write("\t\t%s;\n" % x[1:])
|
|
+ if global_abi != ["*"]:
|
|
if len(global_abi) > 0:
|
|
f.write("\t\t*;\n")
|
|
f.write("};\n")
|