Skip to content

Commit b2a296b

Browse files
doc: Update compiler for FreeBSD specific instructions
FreeBSD has since v13 switched to Clang from GCC, so update our instructions to cc instead of gcc to reflect that. Reported-by: [email protected] Discussion: https://postgr.es/m/CAJR80-xzR49jEkAC98Yo-wuSdFDV2=2H4j9Z2AukSVU=-UpynA@mail.gmail.com
1 parent c64086b commit b2a296b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/src/sgml/dfunc.sgml

+5-4
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@
6666
<option>-fPIC</option>. To create shared libraries the compiler
6767
flag is <option>-shared</option>.
6868
<programlisting>
69-
gcc -fPIC -c foo.c
70-
gcc -shared -o foo.so foo.o
69+
cc -fPIC -c foo.c
70+
cc -shared -o foo.so foo.o
7171
</programlisting>
72-
This is applicable as of version 3.0 of
73-
<systemitem class="osname">FreeBSD</systemitem>.
72+
This is applicable as of version 13.0 of
73+
<systemitem class="osname">FreeBSD</systemitem>, older versions used
74+
the <filename>gcc</filename> compiler.
7475
</para>
7576
</listitem>
7677
</varlistentry>

0 commit comments

Comments
 (0)