mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
lang/nim: remove ELFv1 support
This commit is contained in:
parent
12f9a46a7c
commit
fa1853a310
@ -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}" \
|
||||
|
@ -1,25 +0,0 @@
|
||||
--- build.sh.orig 2019-10-24 12:53:39 UTC
|
||||
+++ build.sh
|
||||
@@ -84,7 +84,11 @@
|
||||
;;
|
||||
*freebsd* )
|
||||
myos="freebsd"
|
||||
- CC="clang"
|
||||
+ if [ "$ucpu" = "powerpc" ] ; then
|
||||
+ CC="gcc%%GCC_DEFAULT%%"
|
||||
+ else
|
||||
+ CC="clang"
|
||||
+ fi
|
||||
LINK_FLAGS="$LINK_FLAGS -lm"
|
||||
;;
|
||||
*openbsd* )
|
||||
--- config/nim.cfg.orig 2020-09-15 13:59:31 UTC
|
||||
+++ config/nim.cfg
|
||||
@@ -9,6 +9,7 @@
|
||||
# gcc.path %= "$CC_PATH"
|
||||
|
||||
cc = gcc
|
||||
+gcc.exe = "gcc%%GCC_DEFAULT%%"
|
||||
|
||||
# additional options always passed to the compiler:
|
||||
--parallel_build: "0" # 0 to auto-detect number of processors
|
Loading…
Reference in New Issue
Block a user