php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13018 -Bstatic compile time option ignored
Submitted: 2001-08-29 04:10 UTC Modified: 2001-08-29 09:42 UTC
From: jewa at force dot de Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.0.6 OS: Solaris 2.7
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jewa at force dot de
New email:
PHP Version: OS:

 

 [2001-08-29 04:10 UTC] jewa at force dot de
Hi,

I compiled 4.0.6 with SUNWspro 4.0 cc compiler and the following options:

export CC=/opt/SUNWspro/bin/cc
export LDFLAGS="-Bstatic -L/opt/mysql/lib/mysql -lmysqlclient"
./configure --prefix=/opt/php --with-mysql=/opt/mysql --with-apxs=/opt/apache/bin/apxs
--with-config-file-path=/opt/php; make

So I want to include the static mysql library "libmysqlclient.so" to avoid setting a LD_LIBRARY_PATH to apache.
But libphp4.so stiil uses the shared library:

find . -name *.so
./.libs/libphp4.so
ha-pollux(root)# ldd ./.libs/libphp4.so
        libmysqlclient.so.10 =>  (file not found)
        libcrypt_i.so.1 =>       /usr/lib/libcrypt_i.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libucb.so.1 =>   /usr/ucblib/libucb.so.1
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libelf.so.1 =>   /usr/lib/libelf.so.1
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-29 09:42 UTC] sniper@php.net
.so is NOT static library.

Anyway, libtool uses the shared one if it finds it.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC