DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31448>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31448

apxs incorrectly passes CFLAG options to libtool.





------- Additional Comments From [EMAIL PROTECTED]  2004-09-28 14:50 -------
Well, here's the problem with that... :)

I'm actually compiling in a seperate directory and using the VPATH/PATH
feature of make to locate my sources.  Even if I manually specify the source
file as ../itour/mod_itour.c apxs and libtool conspire to dump files out into
../itour/ instead of the current working directory.

Also... why do I need to say "-o mod_so.la"?  What I really want is "mod_so.so".

This won't work for me.

Basically:

I have:
tourserve/itour - sources + Apache13 makefile
tourserve/itour2 - Apache2 makefile

The apache2 makefile just overrides a couple of knobs and includes the apache13
makefile.  But for some reason apxs decides to dump files into my source
directories instead of my current directory.

Here's a fix that prevents it, but only if you give a -o option to apxs, I
haven't figured out how to fix it without -o.

Basically this patch just removes any leading pathnames from the source files
when making the object file names:

--- apxs.in     Mon Feb  9 12:59:49 2004
+++ apxs.new    Tue Sep 28 07:47:18 2004
@@ -400,13 +400,15 @@
     my $s;
     my $mod;
     foreach $s (@srcs) {
-        my $slo = $s;
+        my $ss = $s;
+        $ss =~ s|.*/||;
+        my $slo = $ss;
         $slo =~ s|\.c$|.slo|;
-        my $lo = $s;
+        my $lo = $ss;
         $lo =~ s|\.c$|.lo|;
-        my $la = $s;
+        my $la = $ss;
         $la =~ s|\.c$|.la|;
-        my $o = $s;
+        my $o = $ss;
         $o =~ s|\.c$|.o|;
         push(@cmds, "$libtool $ltflags --mode=compile $CFG_CC $cflags -I$CFG_IN
CLUDEDIR $apr_includedir $apu_includedir $opt -c -o $lo $s && touch $slo");
         unshift(@objs, $lo);
@@ -419,12 +421,9 @@


Also, why do I need a "-o mod_foo.la", all i really want is "mod_foo.o", can't
that be fixed?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to