Bug #1510: -R options needed for linking -lttf and -lpq

From: Date: Tue, 08 Jun 1999 14:36:45 +0000
Subject: Bug #1510: -R options needed for linking -lttf and -lpq
Groups: php.dev 
Request: Send a blank email to php-dev+get-6717@lists.php.net to get a copy of this message
From: veit@nexen.com Operating system: Solaris 2.5.1 PHP version: 3.0.9 PHP Bug Type: Installation problem Bug description: -R options needed for linking -lttf and -lpq I had to modify configure so that -R options were passed to the linker for the ttf and pq libraries. Otherwise, when apache dynamically loaded the mod_php.so it would get unable to find library errors. Here are the changes I made to the configure file to get this to work for me: Change (second occurrence of) LIBS="-lttf $LIBS" to TTF_LIBDIR=/opt/gnu/lib TTF_LIB = -lttf if test -n "$APXS"; then TTF_LFLAGS="-L$TTF_LIBDIR ${apxs_runpath_switch}$TTF_LIBDIR'" else TTF_LFLAGS="-L$TTF_LIBDIR ${ld_runpath_switch}$TTF_LIBDIR" fi LIBS="$TTF_LFLAGS $TTF_LIB $LIBS" Change PGSQL_LFLAGS=-L$PGSQL_LIBDIR to if test -n "$APXS"; then PGSQL_LFLAGS="-L$PGSQL_LIBDIR ${apxs_runpath_switch}$PGSQL_LIBDIR'" else PGSQL_LFLAGS="-L$PGSQL_LIBDIR ${ld_runpath_switch}$PGSQL_LIBDIR" fi I ran configure with the following options: setenv CC cc setenv CPPFLAGS -I/opt/gnu/include setenv ORACLE_HOME /opt/oracle ./configure --prefix=/opt/gnu \ --with-apxs=/opt/apache/apache_1.3.6/bin/apxs \ --with-config-file-path=/opt/apache/apache_1.3.6 \ --with-pgsql=/opt/postgresql --with-oracle

« previous php.dev (#6717) next »