SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,25 @@
1. Force building standalone library (e.g., put headers in appropriate place).
2. Use -Wl,no-undefined as on other platforms.
Index: lib/ldb/wscript
--- lib/ldb/wscript.orig
+++ lib/ldb/wscript
@@ -69,6 +69,7 @@ def configure(conf):
conf.CONFIG_PATH('LDB_MODULESDIR', conf.SUBST_ENV_VAR('MODULESDIR') + '/ldb')
conf.env.standalone_ldb = conf.IN_LAUNCH_DIR()
+ conf.env.standalone_ldb = True
if not conf.env.standalone_ldb:
max_ldb_version = [int(x) for x in VERSION.split(".")]
@@ -152,8 +153,7 @@ def configure(conf):
# we don't want any libraries or modules to rely on runtime
# resolution of symbols
- if not sys.platform.startswith("openbsd"):
- conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
+ conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
# if lmdb support is enabled then we require lmdb
# is present, build the mdb back end and enable lmdb support in