This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: groff dependancy on libstdc++



> If those dependancies are on language support routines only, then see
> 
>     http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#2_5
> 
> and use libsupc++ instead.

Hmm, I did the following:

  CC=/opt/experimental/bin/gcc \
  CXX=/opt/experimental/bin/g++ \
  CXXFLAGS="-g -O -nodefaultlibs" \
  LDFLAGS="-lc -lsupc++" ./configure

(this is gcc 3.0.1) and I get this:

  configure:2005: checking that C++ static constructors and
                  destructors are called
  configure:2029: /opt/experimental/bin/g++ -o conftest -g -O 
                  -nodefaultlibs  -lc -lsupc++ conftest.cc  >&5
  /tmp/cc7KaCgn.o: In function `main':
  /home/cjk/z.z/configure:2024: undefined reference to `__gxx_personality_v0'
  collect2: ld returned 1 exit status
  configure:2032: $? = 1
  configure: program exited with status 1
  configure: failed program was:
  #line 2012 "configure"  
  #include "confdefs.h"

  extern "C" {
    void _exit(int);   
  }
  int i;
  struct A {
    char dummy;
    A() { i = 1; }
    ~A() { if (i == 1) _exit(0); }
  };
  A a;
  int main() { return 1; }


    Werner


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]