Alien-libpq

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    source if necessary.

    The source build is configured without OpenSSL, readline, zlib, and ICU
    for a minimal footprint. SSL/TLS connections require system-provided
    libpq.

METHODS
  libs
  libs_static
    On macOS with a share install, appends "-Wl,-rpath" so the dynamic
    linker can find "libpq.dylib" after Alien::Build DESTDIR relocation.

    All other methods are inherited from Alien::Base.

SEE ALSO
    Alien::Base, <https://www.postgresql.org/docs/current/libpq.html>

LICENSE
    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.

alienfile  view on Meta::CPAN

        '%{configure} --prefix=%{.install.prefix} --without-readline --without-zlib --without-icu --without-openssl',
        "$make -C src/backend generated-headers",
        "$make -C src/common",
        "$make -C src/port",
        "$make -C src/interfaces/libpq",
        "$make -C src/interfaces/libpq install",
        'cp src/include/postgres_ext.h $DESTDIR/%{.install.prefix}/include/',
        'cp src/common/libpgcommon.a src/port/libpgport.a $DESTDIR/%{.install.prefix}/lib/',
        sub {
            # On macOS, fix the dylib install_name from an absolute path to
            # @rpath so it can work after Alien::Build DESTDIR relocation.
            my $build = shift;
            return unless $^O eq 'darwin';
            my $prefix  = $build->install_prop->{prefix};
            my $destdir = $ENV{DESTDIR} // '';
            my $lib     = "$destdir$prefix/lib";

            system('install_name_tool', '-id', '@rpath/libpq.5.dylib',
                   "$lib/libpq.5.dylib") == 0
                or die "install_name_tool failed";
        },

lib/Alien/libpq.pm  view on Meta::CPAN

The source build is configured without OpenSSL, readline, zlib, and ICU
for a minimal footprint.  SSL/TLS connections require system-provided libpq.

=head1 METHODS

=head2 libs

=head2 libs_static

On macOS with a share install, appends C<-Wl,-rpath> so the dynamic
linker can find C<libpq.dylib> after Alien::Build DESTDIR relocation.

All other methods are inherited from L<Alien::Base>.

=head1 SEE ALSO

L<Alien::Base>, L<https://www.postgresql.org/docs/current/libpq.html>

=head1 LICENSE

This is free software; you can redistribute it and/or modify it under



( run in 0.773 second using v1.01-cache-2.11-cpan-71847e10f99 )