git: 45257ef6b57b - main - net/onedrive: Fix build on stable/13 and stable/12 with llvm 13.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Feb 2022 21:20:21 UTC
The branch main has been updated by lwhsu:
URL: https://cgit.FreeBSD.org/ports/commit/?id=45257ef6b57b6ec0396e08dae96fa3c7e2a86f98
commit 45257ef6b57b6ec0396e08dae96fa3c7e2a86f98
Author: Hiroo Ono <hiroo.ono+freebsd@gmail.com>
AuthorDate: 2022-02-07 21:19:04 +0000
Commit: Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2022-02-07 21:20:04 +0000
net/onedrive: Fix build on stable/13 and stable/12 with llvm 13.0
PR: 261762
---
net/onedrive/Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/net/onedrive/Makefile b/net/onedrive/Makefile
index 03f5014f1d7f..bf33b6e6f3da 100644
--- a/net/onedrive/Makefile
+++ b/net/onedrive/Makefile
@@ -48,7 +48,10 @@ post-install:
.include <bsd.port.pre.mk>
-.if (${OSVERSION} >= 1400042)
+# llvm 13.0 and above.
+.if (${OSVERSION} >= 1400042) || \
+ (${OSVERSION} < 1400000 && ${OSVERSION} >= 1300522) || \
+ (${OSVERSION} < 1300000 && ${OSVERSION} >= 1203505)
CONFIGURE_ARGS+= DCFLAGS=-L=-Wl,-z,nostart-stop-gc
.endif