diff options
author | Robert Clausecker <fuz@FreeBSD.org> | 2024-05-05 17:20:52 +0000 |
---|---|---|
committer | Robert Clausecker <fuz@FreeBSD.org> | 2024-05-06 20:18:29 +0000 |
commit | 2a7abdbccbf9460e6c411c1d67fec4b0e373e8c4 (patch) | |
tree | 773ee34c666ebdcb69dab56e383e165c3041f975 | |
parent | 643a47d64f9f777ebd9b1900928842c21865f616 (diff) | |
download | ports-2a7abdbccbf9460e6c411c1d67fec4b0e373e8c4.tar.gz ports-2a7abdbccbf9460e6c411c1d67fec4b0e373e8c4.zip |
sysutils/slurm-wlm: add correct linker emulation for aarch64
Approved by: portmgr (blanket)
MFH: 2024Q2
(cherry picked from commit 04a50fdffdfcf12183556b691aa138ef7a173d59)
-rw-r--r-- | sysutils/slurm-wlm/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/slurm-wlm/Makefile b/sysutils/slurm-wlm/Makefile index 625cc74f5b99..41dcb2267d65 100644 --- a/sysutils/slurm-wlm/Makefile +++ b/sysutils/slurm-wlm/Makefile @@ -143,8 +143,19 @@ pre-configure: ${ECHO_CMD} "********************************************"; \ false; \ fi +.if ${ARCH} == powerpc64le + ${FIND} ${LLD2FIX:C|^|${WRKSRC}/src/|} -name Makefile.in | ${XARGS} \ + ${REINPLACE_CMD} -e 's|-r -o|-r -m elf64lppc -o|' +.elif ${ARCH} == powerpc64 + ${FIND} ${LLD2FIX:C|^|${WRKSRC}/src/|} -name Makefile.in | ${XARGS} \ + ${REINPLACE_CMD} -e 's|-r -o|-r -m elf64ppc -o|' +.elif ${ARCH} == aarch64 + ${FIND} ${LLD2FIX:C|^|${WRKSRC}/src/|} -name Makefile.in | ${XARGS} \ + ${REINPLACE_CMD} -e 's|-r -o|-r -m aarch64elf -o|' +.else ${FIND} ${LLD2FIX:C|^|${WRKSRC}/src/|} -name Makefile.in | ${XARGS} \ ${REINPLACE_CMD} -e 's|-r -o|-r -m elf_${ARCH} -o|' +.endif ${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} \ ${REINPLACE_CMD} -e 's|htmldir = \$${datadir.*$$|htmldir = @htmldir@|' |