hi, there!
This small program does not build with both -current gcc
(gcc version 2.95.2 19991024 (release), I built collect2 for it
manually) and gcc-devel (gcc version 2.96 20000110 (experimental))
--- cut here ---
CXX=g++ -frepo
LD=g++
foo: foo.o
$(LD) -o $* $>
clean:
rm -f foo.o foo foo.rpo
--- cut here ---
--- cut here ---
#include <string>
#include <vector>
main(void)
{
std::vector<std::string> v;
std::string s = "foo";
v.push_back(s);
return 0;
}
--- cut here ---
When I tried to compile the same program on Solaris (gcc 2.95.1) and Linux
(gcc 2.95.2) everything went ok but I noticed that collect2 recompiles
foo.cc twice. On FreeBSD foo.cc gets recompiled only once and on the
second pass collect2 bails out in tlink.c:do_tlink after
scan_linker_output() call.
I need -frepo because I'm porting quite large project to FreeBSD
and -frepo is used there heavily. However porting it to Linux was not that
hard.
/fjoe
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message