mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
py-matplotlib: disable link-time optimization for ports-gcc, ok daniel
The combination of a modern compiler with antique binutils isn't expected in the ecosystem. On sparc64, LTO is enabled because the ports-gcc supports it which then emits "e" sections which are to be excluded from executables and shared objects by the link editor, such as .section .gnu.lto_.profile.5712db33fb59d8ee,"e",@progbits As reported by kmos, Fred Flintstone's gas trips over these with Fatal error: unrecognized .section attribute: want a,w,x,M,S,G,T
This commit is contained in:
@@ -70,3 +70,9 @@ post-install:
|
||||
cd ${WRKSRC}/galleries/examples && pax -rw * ${EXAMPLESDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
.if ${CHOSEN_COMPILER} == "ports-gcc"
|
||||
# as(1) can't deal with the "e" sections that port-gcc emits with -flto=auto
|
||||
# Fatal error: unrecognized .section attribute: want a,w,x,M,S,G,T
|
||||
MODPY_PYBUILD_ARGS+=--config-setting=setup-args=-Db_lto=false
|
||||
.endif
|
||||
|
||||
Reference in New Issue
Block a user