Skip to content

--libdir option default value #18579

Open
@remicollet

Description

@remicollet

Description

For years we use (for RPM build)

--libdir=/usr/lib64/php

excepted for embed SAPI which need the default path

--libdir=/usr/lib64

Since 0c07b0d this should not be necessary thanks to orig_libdir used for embded

orig_libdir=$libdir
AS_CASE([$libdir],
  ['${exec_prefix}/lib'], [libdir=$libdir/php])

AS_CASE([$(eval echo $datadir)],
  ['${prefix}/share'], [datadir=$datadir/php])

But the test does not work because of quote.

A proper test is probably (no quote + using php_libdir for lib64 case)

AS_CASE([$libdir],
  [${prefix}/${PHP_LIBDIR}], [libdir=$libdir/php])

Same issue with datadir, but this is only used for fpm/status.html page, other use datarootdir. Perhaps we can drop this check (to avoid change)

Help welcome on this

PHP Version

In PHP-8.4

Operating System

Linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions