httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Subra A Narayanan" <>
Subject Re: Specifying a different target directory for APXS
Date Fri, 14 Dec 2007 16:05:59 GMT

Thanks for ur response.

The reason I wanted to change the target directory was because my apache
module is being compiled as one of the components of a much larger makefile.
All the other shared libraries generated by this make file, are copied in a
particular directory and hence I wanted my apache module to go in to that
directory as well. As you suggested, I could copy the .so file to whatever
directory I want later on, but I am not sure if such copying ig generally
done in a makefile.

I did try to directly use gcc to compile my apache module so that I could
specify any target directory but ran in to another issue which is detailed
here =>

I didnt receive any helpful responses to that posting thats why I am trying
to use apxs.

Would you care to take a look at this issue =>

Thanks so much!


On Dec 14, 2007 9:27 AM, Joe Lewis <> wrote:

> Subra A Narayanan wrote:
> > Hello folks,
> >
> > Has anyone come across a similar situation before? Can a target folder
> be
> > specified or is that not possible?
> >
> > Any help is greatly appreciated.
> >
> > Subra
> >
> The .libs directory is specified by the libtool command, not by the apxs
> tool.  However, this is probably not what you really want.  Perhaps
> running an apxs -i command to INSTALL the module.
> Your apxs -c command is merely compiling the module.  The apxs -i
> command installs the module into the appropriate apache directory
> (configured when you compiled apache the first time [if RPM, when the
> RPM was built]).
> If you really must change the directory, then you can manually edit the
> file specified by the `apr-config --apr-libtool` command, and change the
> objdir parameter.  But, don't ask us for any help if this causes your
> system to no longer compile apache or apache modules (or even run apache
> or compile other processes that require the libtool command, or things
> to blow up).  No one in their right mind is going to touch that.
> It is easy enough to copy the .so file to where you need it once (unless
> you are installing it, then it's easy enough to just use a -i parameter
> to apxs to install the module).
> Good luck,
> Joe
> --
> Joseph Lewis <>
> "Divide the fire, and you will sooner put it out." - Publius Syrus

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message