Automatic generation of -L/usr/lib/lib and -R/lots/of/directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I use the folwowing script to configure php - and am wondering where the strange arguments are coming from while configure runs.

export LDFLAGS='-blibpath:/usr/local/lib:/usr/lib:/usr/local/mysql/lib'
export CC=xlc
./configure \
        --with-apxs2=/usr/local/apache2/bin/apxs \
        --enable-safe-mode \
        --enable-magic-quotes \
        --disable-bcmath \
        --enable-dba \
        --enable-ftp \
        --with-gd \
        --with-jpeg-dir=/usr/local/lib  \
        --with-ttf \
        --with-curlwrappers \
        --with-curl \
        --with-freetype-dir \
        --with-libxml-dir \
        --enable-gd-native-ttf \
        --with-mysql=/usr/local/mysql \
        --with-pear=/usr/local/bin


I see that tests if -R is accepted, so maybe it assumes they are needed. ld just says they are ignored.

configure:26813: xlc -o conftest -g -R/usr/local/lib -L/usr/local/lib -R/usr/lib/lib -L/usr/lib/lib -R/usr/local/lib -L/usr/local/lib -blibpath:/usr/local/lib:/usr/lib:/usr/l ocal/mysql/lib -R/usr/local/lib -L/usr/local/lib -R/usr/lib/lib -L/usr/lib/lib -lcurl -lssl -lcrypto conftest.c -lcurl -lcurl -lrt -lm -lxml2 -liconv -lm -lcurl -lssl -lcryp
to 1>&5
ld: 0706-027 The -R /usr/local/lib flag is ignored.
ld: 0706-027 The -R /usr/lib/lib flag is ignored.
ld: 0706-027 The -R /usr/local/lib flag is ignored.
ld: 0706-027 The -R /usr/local/lib flag is ignored.


The -L/usr/lib/lib might be a problem - because if the program would just look in /usr/lib most things would be found.

Note: I am slowly recompiling all the things in /usr/lib that are being missed. /usr/lib is a default location so I shall never modify anything there.

FYI: platform is AIX 5.3, compiler is xlC 7

[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux