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

[email protected] (Michael Felt)
Newsgroups php.install
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.