Skip to content

Commit 99a1daa

Browse files
committed
PR tada#475 from Achilleas Mantzios rebased
... with build/freebsd.md updated accordingly.
1 parent 459af26 commit 99a1daa

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

src/site/markdown/build/freebsd.md

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,7 @@
11
# Building on FreeBSD
22

3-
At one time, [FreeBSD][]'s threading library would malfunction if it was
4-
dynamically loaded after the start of a program that did not use threads
5-
itself. That was a problem for PL/Java on FreeBSD, because PostgreSQL
6-
itself does not use threads, but Java does. The only known workaround was
7-
to build PostgreSQL itself from source, with the thread library included
8-
in linking.
9-
10-
The same problem was [reported to affect other PostgreSQL extensions][rep]
11-
such as `plv8` and `imcs` also.
12-
13-
The [manual page for FreeBSD's libthr][manthr] was edited
14-
[in February 2015][thrdif] to remove the statement of that limitation,
15-
and the updated manual page appears first in [FreeBSD 10.2][rel102],
16-
so in FreeBSD 10.2 or later, PL/Java (and other affected extensions)
17-
may work without the need to build PostgreSQL from source.
3+
Building on [FreeBSD][] should proceed just as it does on Linux,
4+
as of late 2023, according to Achilleos Mantzios, who provided the patch
5+
adding the necessary build rules.
186

197
[FreeBSD]: https://www.freebsd.org/
20-
[rep]: https://lists.freebsd.org/pipermail/freebsd-hackers/2014-April/044961.html
21-
[manthr]: https://www.freebsd.org/cgi/man.cgi?query=libthr&apropos=0&sektion=3&manpath=FreeBSD+10.2-RELEASE&arch=default&format=html
22-
[thrdif]: https://svnweb.freebsd.org/base/head/lib/libthr/libthr.3?r1=272153&r2=278627
23-
[rel102]: https://www.freebsd.org/releases/10.2R/announce.html

0 commit comments

Comments
 (0)