Skip to content

Commit

Permalink
lang/nim: remove ELFv1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
pkubaj committed Jan 5, 2024
1 parent 12f9a46 commit fa1853a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 38 deletions.
13 changes: 0 additions & 13 deletions lang/nim/Makefile
Expand Up @@ -31,21 +31,8 @@ TEST_BINARY_ALIAS= node=nodejs

TLIST= nimgrep nimpretty nimsuggest testament

.if ${CHOSEN_COMPILER_TYPE} == "gcc"
EXTRA_PATCHES= ${PATCHDIR}/elfv1-patch-build.sh
.else
EXTRA_PATCHES= ${PATCHDIR}/clang-patch-build.sh
.endif

NIMDIR= ${STAGEDIR}${PREFIX}/nim

post-patch:
.if defined(PPC_ABI) && ${PPC_ABI} == ELFv1
@${REINPLACE_CMD} -e '/cc =/s/clang/gcc/' ${WRKSRC}/config/nim.cfg
@${REINPLACE_CMD} -e s/%%GCC_DEFAULT%%/${GCC_DEFAULT}/ \
${WRKSRC}/build.sh ${WRKSRC}/config/nim.cfg
.endif

do-build:
cd ${WRKSRC} && ${SETENV} CC="${CC}" LINKER="${CC}" \
COMP_FLAGS="${CPPFLAGS} ${CFLAGS}" LINK_FLAGS="${LDFLAGS}" \
Expand Down
25 changes: 0 additions & 25 deletions lang/nim/files/elfv1-patch-build.sh

This file was deleted.

File renamed without changes.

0 comments on commit fa1853a

Please sign in to comment.