On 11/02/11 05:03, Steve Snyder wrote:
Hello.

This may be a question that pertains more to libtool than to Squid per se, but 
I'll ask it here anyway.

For Squid v3.1.x I want to build 2 of the source files with different compiler 
options than all the other source files.  Put another way, I want CXXFLAGS to 
have a different value for these 2 source files, while leaving the existing 
CXXFLAGS to be used for all other compilations.

Specifically, I want to build ~/src/unlinkd.cc and ~/src/disk.cc with different 
options.

I've looked through ~/src/Makefile.* in the hope of seeing an occasion where 
the build of a single file deviates from the overall rules, but no such example 
is seen.

So... how can I tell the Squid build to compile these 2 files with different 
compiler options?

Please CC me with any responses as I am not a subscriber to the squid-dev list.

Firstly, why? They are binaries to be run on the same machine and as part of Squid.

There is no easy way really to do this in the build system. They all share libraries and backend code. You will have to build twice, once with each set of flags and extract the binaries you want from each build.

If you have a new enough automake you may be able to set the flags via environment, but will still have to extract the binaries and clean out the shared pieces between each build.

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE9 or 3.1.11
  Beta testers wanted for 3.2.0.4

Reply via email to