erlang-erlsyslog/0001-fix-build-error-for-loongarch64.patch
2023-05-19 15:14:20 +08:00

20 lines
578 B
Diff

From a082da6b4a09a6ba18c9016ff65da888a7e100ec Mon Sep 17 00:00:00 2001
From: Wenlong Zhang <zhangwenlong@loongson.cn>
Date: Fri, 19 May 2023 07:07:56 +0000
Subject: [PATCH] fix build error for loongarch64
---
rebar.config | 1 +
1 file changed, 1 insertion(+)
diff --git a/rebar.config b/rebar.config
index 47c1534..cf97e5b 100644
--- a/rebar.config
+++ b/rebar.config
@@ -1 +1,2 @@
{post_hooks, [{compile, "sed -i -e \"s,%VSN%,${VSN},g\" ebin/erlsyslog.app"}]}.
+{port_env, [{"DRV_LDFLAGS", "-shared -L/usr/lib64/erlang/lib/erl_interface-4.0.3.1/lib -lei"}]}.
--
2.33.0