Home Explore Blog CI



postgresql

3rd chunk of `doc/src/sgml/ref/pg_config-ref.sgml`
416adf372d5548a2f3d308478ea1ba2116f0f3c2fba60e3b0000000100000885
 <varname>CPPFLAGS</varname> variable that was used for building
       <productname>PostgreSQL</productname>.  This shows C compiler switches needed
       at preprocessing time (typically, <literal>-I</literal> switches).
      </para>
     </listitem>
    </varlistentry>

    <varlistentry>
     <term><option>--cflags</option></term>
     <listitem>
      <para>
       Print the value of the <varname>CFLAGS</varname> variable that was used for building
       <productname>PostgreSQL</productname>.  This shows C compiler switches.
      </para>
     </listitem>
    </varlistentry>

    <varlistentry>
     <term><option>--cflags_sl</option></term>
     <listitem>
      <para>
       Print the value of the <varname>CFLAGS_SL</varname> variable that was used for building
       <productname>PostgreSQL</productname>.  This shows extra C compiler switches
       used for building shared libraries.
      </para>
     </listitem>
    </varlistentry>

    <varlistentry>
     <term><option>--ldflags</option></term>
     <listitem>
      <para>
       Print the value of the <varname>LDFLAGS</varname> variable that was used for building
       <productname>PostgreSQL</productname>.  This shows linker switches.
      </para>
     </listitem>
    </varlistentry>

    <varlistentry>
     <term><option>--ldflags_ex</option></term>
     <listitem>
      <para>
       Print the value of the <varname>LDFLAGS_EX</varname> variable that was used for building
       <productname>PostgreSQL</productname>.  This shows linker switches
       used for building executables only.
      </para>
     </listitem>
    </varlistentry>

    <varlistentry>
     <term><option>--ldflags_sl</option></term>
     <listitem>
      <para>
       Print the value of the <varname>LDFLAGS_SL</varname> variable that was used for building
       <productname>PostgreSQL</productname>.  This shows linker switches
       used for building shared libraries only.
      </para>
     </listitem>
    </varlistentry>

    <varlistentry>
     <term><option>--libs</option></term>
     <listitem>
      <para>
       Print the value of the <varname>LIBS</varname> variable that was used for building
 

Title: pg_config Options: Compiler and Linker Flags
Summary
This section details more `pg_config` options related to compiler and linker flags used during the PostgreSQL build process. These include: `--ldflags` for linker switches, `--ldflags_ex` for linker switches used only for executables, and `--ldflags_sl` for linker switches used only for shared libraries.