git: eb176a659d2d - main - audio/ardour6: fix build on powerpc
Piotr Kubaj
pkubaj at FreeBSD.org
Wed Jun 30 20:38:20 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=eb176a659d2d2f0666ec4acef2fec47bbce15feb
commit eb176a659d2d2f0666ec4acef2fec47bbce15feb
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-06-30 20:37:48 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-06-30 20:37:48 +0000
audio/ardour6: fix build on powerpc
ld: error: can't create dynamic relocation R_PPC_ADDR32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in libs/ardour/cycle_timer.cc.1.o
>>> referenced by cycle_timer.cc
>>> libs/ardour/cycle_timer.cc.1.o:(__ftr_fixup+0x1C)
---
audio/ardour6/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/audio/ardour6/Makefile b/audio/ardour6/Makefile
index 7b79edd21da5..b02beff079fa 100644
--- a/audio/ardour6/Makefile
+++ b/audio/ardour6/Makefile
@@ -61,6 +61,8 @@ CONFIGURE_ARGS_amd64= --arch='-msse -mfpmath=sse -DARCH_X86' --dist-target=x86_6
# only support for i686 or better
CONFIGURE_ARGS_i386= --arch='-msse -mfpmath=sse -march=i686 -DARCH_X86' --dist-target=i686
+LDFLAGS_powerpc= -Wl,-z,notext
+
post-patch:
@${REINPLACE_CMD} -e 's/obj\.use = '\''libsmf libpbd'\''/obj\.use = '\''libsmf_internal libpbd'\''/g' ${WRKSRC}/libs/evoral/wscript
@${REINPLACE_CMD} -e 's/libsmf\.name = '\''libsmf'\''/libsmf\.name = '\''libsmf_internal'\''/g' ${WRKSRC}/libs/evoral/wscript
More information about the dev-commits-ports-main
mailing list