Re: Compile/Link Error for Postgres 8.1.0 on Solaris 8 - Mailing list pgsql-novice

From Alan Stange
Subject Re: Compile/Link Error for Postgres 8.1.0 on Solaris 8
Date
Msg-id 43988B0F.7070406@rentec.com
Whole thread Raw
In response to Re: Compile/Link Error for Postgres 8.1.0 on Solaris 8  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Compile/Link Error for Postgres 8.1.0 on Solaris 8
List pgsql-novice
Tom Lane wrote:
> Alan Stange <stange@rentec.com> writes:
>
>> Bhide, Rajan wrote:
>>
>>> ./configure --without-readline --enable-thread-safety CFLAGS=-xO4
>>> -D_REENTRANT -xipo -mt -lpthread
>>> CC=/export/home/uxapps/workshop/SUNWspro/bin/cc
>>>
>
>
>> Given that you've enabled -xipo, and the error is related to ipo, I'd
>> suggest dropping that option for now.
>>
>
> Putting -lpthread into CFLAGS seems pretty foolish as well.  If you
> needed to specify that explicitly (which you do not) it would belong
> in LDFLAGS --- putting it in CFLAGS is pretty certain to screw up
> link order and so on.  And what is -mt?
>
>             regards, tom lane
>
     -mt  Passes D_REENTRANT to preprocessor. Appends -lthread
          after all other user-specified libraries on the command
          line.  If you are doing your own multithread coding,
          you must use this option in the compile and link steps.
          To obtain faster execution, this option requires a mul-
          tiprocessor system. On a single-processor system, the
          resulting executable usually runs more slowly with this
          option.


pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Compile/Link Error for Postgres 8.1.0 on Solaris 8
Next
From: Bruce Momjian
Date:
Subject: Re: Compile/Link Error for Postgres 8.1.0 on Solaris 8