mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
lang/eisl: fix runtime on powerpc64 and build on riscv64
1. LTO is known to create broken binaries on powerpc64. 2. LTO causes build failures on riscv64.
This commit is contained in:
parent
f95ab0c052
commit
65cfadb92d
@ -1,7 +1,7 @@
|
||||
PORTNAME= eisl
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 2.50-114
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
DISTVERSIONSUFFIX= -g1216d9e
|
||||
CATEGORIES= lang devel
|
||||
|
||||
@ -11,8 +11,6 @@ COMMENT= Interpreter and compiler compatible with ISLisp standard
|
||||
LICENSE= BSD2CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/documents/license.txt
|
||||
|
||||
BROKEN_riscv64= hard-float 'd' ABI can't be used for a target that doesn't support the D instruction set extension (ignoring target-abi)
|
||||
|
||||
TEST_DEPENDS= cppcheck:devel/cppcheck
|
||||
|
||||
USES= gmake ncurses:port # port because tests need ncurses6-config
|
||||
@ -30,4 +28,10 @@ LDFLAGS+= -lncursesw
|
||||
PLIST_FILES= bin/edlis \
|
||||
bin/eisl
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${ARCH} == powerpc64 || ${ARCH} == riscv64
|
||||
EXTRA_PATCHES= ${FILESDIR}/extra-patch-makefile
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
19
lang/eisl/files/extra-patch-makefile
Normal file
19
lang/eisl/files/extra-patch-makefile
Normal file
@ -0,0 +1,19 @@
|
||||
--- makefile.orig 2022-08-01 14:01:09 UTC
|
||||
+++ makefile
|
||||
@@ -42,7 +42,7 @@ ifeq ($(DEBUG),1)
|
||||
LDFLAGS := -fsanitize=undefined
|
||||
endif
|
||||
else
|
||||
- CFLAGS += -O3 -flto -DNDEBUG=1 -DWITHOUT_NANA=1
|
||||
+ CFLAGS += -O3 -DNDEBUG=1 -DWITHOUT_NANA=1
|
||||
SRC_CII += cii/src/mem.c
|
||||
endif
|
||||
OBJ_CII := $(SRC_CII:.c=.o)
|
||||
@@ -59,7 +59,6 @@ ifeq ($(shell uname -n),raspberrypi)
|
||||
CFLAGS += -D__rpi__
|
||||
endif
|
||||
ifneq ($(DEBUG),1)
|
||||
- LDFLAGS += -flto
|
||||
ifeq ($(OPSYS),macos)
|
||||
LDFLAGS += -Wl,-S,-x
|
||||
else
|
Loading…
Reference in New Issue
Block a user