Re: (g)cc and /usr/local

From: Kent Hauser (kent.hauser_at_verizon.net)
Date: 07/09/03

  • Next message: Joachim Dagerot: "Is there a utility like top but with an X interface?"
    To: questions@freebsd.org
    Date: Tue, 8 Jul 2003 12:49:16 -1000
    
    

    Not the case -- at least on SunOS 3.x & 4.x (the CSRG based versions).
    On those machines, /bin/cc looked in /usr/local/{include,lib} first -- just
    like gcc did.

    Solaris (aka SunOS 5+) is a SVR5 system which had an optional compiler.
    I don't recall what happened when the vendor compiler was installed -- I
    always used gcc.

    On Tuesday 08 July 2003 12:42 pm, you wrote:
    > In the last episode (Jul 08), Kent Hauser said:
    > > Why doesn't gcc look in /usr/local/{include,lib} on FreeBSD? It
    > > always did on my sun box. Installing in "/usr/local" is standard on
    > > CSRG systems -- why is looking non-standard on FreeBSD?
    >
    > Because when you installed gcc on Solaris, it probably installed into
    > /usr/local/bin, which means it'll search /usr/local/include for
    > headers. gcc on FreeBSD is the default compiler, is installed in
    > /usr/bin, and does not search /usr/local/include. I bet if you were to
    > run Solaris' default cc, it wouldn't search /usr/local/include either.

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Joachim Dagerot: "Is there a utility like top but with an X interface?"

    Relevant Pages

    • Re: Make problem Building 64 bit Perl 5.8.8 from source on Solaris 10 with gcc 3.4.6
      ... my other email saying that an update to GCC was not crucial. ... Built under solaris ... The Perl configured above failed 4 tests, ... compiler or make any changes to the system directories. ...
      (perl.dbi.users)
    • Re: stdout not open?
      ... Or at least a sun directory. ... > and we're using solaris 2.8. ... because the Solaris 8 libraries have the exact same APIs ... Also, you mentioned that you're using gcc, and I ...
      (comp.lang.c)
    • Re: which libc used by gcc (and matlab)
      ... > normally use the libc built into Solaris. ... for any unix-based gcc? ... GNU CPP version 3.2.1 ...
      (comp.unix.solaris)
    • Re: which libc used by gcc (and matlab)
      ... > normally use the libc built into Solaris. ... for any unix-based gcc? ... GNU CPP version 3.2.1 ...
      (comp.unix.programmer)
    • Compile OpenSSL/GCC with -fomit-frame-pointer ?
      ... Solaris 8 64bit UltraSparc with gcc 3.2.2 ... I'm only surprised because I interpret the '27' as the version of gcc - ... Don't keep the frame pointer in a register for functions that don't need ... It also makes debugging impossible on some machines. ...
      (comp.unix.solaris)