summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rangehttpserver
diff options
context:
space:
mode:
authorRyan Burns <rtburns@protonmail.com>2021-09-22 17:42:12 -0700
committerRyan Burns <rtburns@protonmail.com>2021-09-22 17:42:12 -0700
commit9eb591df1096bc070fa3ac0e2439b6f66e4a7ec5 (patch)
tree14a396c968559bea1ede9e97d329fd3850c1649d /pkgs/development/python-modules/rangehttpserver
parentd43df749ac4779cdb3f53146c8c1ef66b4f33e33 (diff)
netbsd.compat: fix libs by using cctools strip as objcopy
Reverts d43df749ac4779cdb3f53146c8c1ef66b4f33e33 NetBSD makefiles strip local symbols from libs using `OBJCOPY?=objcopy`, which is missing on macOS. GNU objcopy appears to succeed but produces broken .a libs which do not link into dependers. (As this issue does not fail the netbsd.compat build, downstream netbsd.install is added to passthru.tests.) Since `OBJCOPY` is only used for stripping, we can: * skip stripping with the hacky `OBJCOPY=echo` * use cctools strip, which is invoked in the same way The latter is obviously preferable if it works. Indeed, locals are stripped, although it doesn't affect size much. Comparison: `OBJCOPY=echo`: ``` $ du -b result/lib/*.a 347784 result/lib/libnbcompat.a 357120 result/lib/libnbcompat_p.a ``` `OBJCOPY=${cctools}/bin/strip`: ``` $ du -b result/lib/*.a 347008 result/lib/libnbcompat.a 357120 result/lib/libnbcompat_p.a ```
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions